-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
axes.xmargin/ymargin rcParam behaves differently than pyplot.margins() #2298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@funnell Sorry it took so long for anyone to respond to this. Your comments are exactly right. Changing the behavior of the rcparam seems like an api break, but we are about to release 1.4 and this is probably minor enough to be ok. Adding yet another rcparam would get around that problem, but adds yet another rcparam. I am leaning towards adding Anyone else have thoughts? |
Even though this seems like a small thing, we need to come up with a reasonable array of alternatives. What values would axes.margin_autoscale take, and how would its effect be implemented? |
Punting to 1.4.x |
Did you mean that, or was that meant to be 1.5? |
yup, should have been 1.5 (didn't read my own earlier comments). |
Hi, This issue has been inactive for a while. What is the latest discussion / development for this topic? Thanks! |
When setting the axes.xmargin paramter in my matplotlibrc file to say, 0.05, the margins are increased by much more than 0.05. If I adjust the margins using pyplot.margins(0.05) then I see the expected behaviour.
This seems to be related to the 'tight' parameter in the margins function as setting tight=False reproduces the behaviour of setting the axes.xmargin rcParam.
I suggest having the axes.xmargin/ymargin rcParams behave the same way as the default behaviour of pyplot.margins by having autoscale(tight=True) be run when setting these rcParams. Otherwise, perhaps an autoscale rcParam might be useful?
The text was updated successfully, but these errors were encountered: