Skip to content

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

Closed

Description

@maxnoe

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

Activity

  1. added this to the milestone on Oct 20, 2015
  2. mdboom commented on Oct 20, 2015

    @mdboom
    Member

    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.

  3. added a commit that references this issue on Nov 17, 2015
    4534759
  4. self-assigned this
    on Nov 17, 2015
  5. mdboom commented on Jan 25, 2016

    @mdboom
    Member

    Fixed by #5683.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions