Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
include overspilling axes legends in ax.get_tightbbox#9164
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
choldgraf commentedOct 17, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
any idea why appveyor isn't happy? IMO this is a super useful fix. This is an issue that is constantly coming up. I'd be +1 on backporting to the latest release since it's so simple... quick other thought: another common "cut off" situation is when you add a figure title that's outside of the figure bounds...is there a straightforward way to capture that situation w/ a similar fix as you've got here? |
@choldgraf The apveyor prob was just the same apveyor problem everyone has had. I'll rebase and resubmit. Its pretty trivial, and works fine w/ tight_layout... |
jklymak commentedOct 17, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@choldgraf This modifies the tight box for an axes. A suptitle isn't attached to an axes, so tight_layout can't know where it is trivially. However,#9082 does handle suptitle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍 (does this count as an API change? maybe something should go in what's new?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM as it's quite a simple fix, though perhaps@dstansby should merge as they probably know more about the tight-layout machinery than I do
Isuppose its an API change. However, I would expect the number of folks using Iwill add a what’s new entry, but I don’t think this will break much real-life usage. |
Added whats-new entry
@choldgraf Thanks for your help! Am I allowed to self-merge, or can you do it if you get a minute? |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Expands
ax.get_tightbbox
to include legends.Now something like
will automatically make room for the legend (via
tight_layout
).#9163
#9130
PR Checklist