Skip to content
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

plt.tight_layout(pad=0) cuts away outer ticks #5281

Closed
maxnoe opened this issue Oct 20, 2015 · 2 comments
Closed

plt.tight_layout(pad=0) cuts away outer ticks #5281

maxnoe opened this issue Oct 20, 2015 · 2 comments
Assignees
Milestone

Comments

@maxnoe
Copy link
Contributor

maxnoe commented Oct 20, 2015

Wenn I do plt.tight_layout(pad=0) outer ticks are not considered and cut away:

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

ax.get_yaxis().set_tick_params(direction='out')
ax.get_xaxis().set_tick_params(direction='out')
ax.set_xlim(0.05, 0.95)

fig.tight_layout(pad=0)
fig.savefig('outer_ticks.png', dpi=300)

Result:

outer_ticks

@mdboom mdboom added this to the next major release (2.0) milestone Oct 20, 2015
@mdboom
Copy link
Member

mdboom commented Oct 20, 2015

Milestoning this as 2.0, since if we choose to go with outer ticks in the new defaults, we'll need to first fix this bug.

@mdboom
Copy link
Member

mdboom commented Jan 25, 2016

Fixed by #5683.

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

No branches or pull requests

2 participants