Skip to content

Fix #5281: Include ticks in tight bounding box #5502

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
wants to merge 0 commits into from

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Nov 17, 2015

No description provided.

@mdboom mdboom added this to the next major release (2.0) milestone Nov 17, 2015
@@ -568,7 +568,7 @@ def get_window_extent(self, renderer):
ignore=True)
# correct for marker size, if any
if self._marker:
ms = (self._markersize / 72.0 * self.figure.dpi) * 0.5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for? I assume the issue is that with out this out ticks still get chopped?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The assumption that markers only fill (-0.5, 0.5) is only true for circles. Ticks fill (0, 1) or (-1, 0) depending on "in" or "out".

@tacaswell
Copy link
Member

Also breaks every single tight_layout test

@mdboom
Copy link
Member Author

mdboom commented Nov 18, 2015

Not surprised it breaks tight layout tests. Will probably need to tie this change to _internal.classic_mode.

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

Successfully merging this pull request may close these issues.

3 participants