Skip to content

ordering issues between set_xmargin and set_xscale #7093

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

Closed
anntzer opened this issue Sep 12, 2016 · 4 comments · Fixed by #16340
Closed

ordering issues between set_xmargin and set_xscale #7093

anntzer opened this issue Sep 12, 2016 · 4 comments · Fixed by #16340
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Sep 12, 2016

As of 2.0b4, the order in which calls to set(xmargin=...) and set(xscale=...) are made result in different plots:

from matplotlib import pyplot as plt
fig, axs = plt.subplots(2)
axs[0].plot([1, 2], [1, 2])
axs[1].plot([1, 2], [1, 2])
axs[0].set(xscale="log"); axs[0].set(xmargin=0)
axs[1].set(xmargin=0); axs[1].set(xscale="log")
plt.show()

20

The ordering did not matter in 1.5, but that was because the setting of xmargin was effectively ignored :-)
15

I'm suggesting to milestone this to 2.0, but I'll let someone else make that call.

@efiring
Copy link
Member

efiring commented Sep 12, 2016

The minor ticks are also missing in the 2.0 example.

@anntzer
Copy link
Contributor Author

anntzer commented Sep 12, 2016

That's because the axis span from 1 to 2, so there's no place for minor ticks.

@jenshnielsen
Copy link
Member

Sounds like this could be related to #6968

@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Sep 12, 2016
@efiring efiring modified the milestones: 2.1 (next point release), 2.0 (style change major release) Nov 16, 2016
@efiring
Copy link
Member

efiring commented Nov 16, 2016

This is connected to #7413.

@tacaswell tacaswell modified the milestones: 2.1 (next point release), 2.2 (next next feature release) Oct 3, 2017
@QuLogic QuLogic modified the milestones: needs sorting, v3.3.0 May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants