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

Legend.get_window_extent now requires a renderer #11970

Closed
tacaswell opened this issue Aug 29, 2018 · 0 comments · Fixed by #11971
Closed

Legend.get_window_extent now requires a renderer #11970

tacaswell opened this issue Aug 29, 2018 · 0 comments · Fixed by #11971
Assignees
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone

Comments

@tacaswell
Copy link
Member

See mwaskom/seaborn#1551

import matplotlib.pyplot as plt

leg = plt.legend()
plt.gcf().canvas.draw()
leg.get_window_extent()

The issue seems to be that #10910 switched which of the children from a patch (which seems to not actually need a renderer to sort out it's size) and a Vpacker (which fixes another bug, but really does need the renderer).

@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Aug 29, 2018
@tacaswell tacaswell added this to the v3.0 milestone Aug 29, 2018
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 29, 2018
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 29, 2018
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 29, 2018
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants