-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
tight_layout puts axes title below twiny xlabel #5474
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
Comments
Is this a regression from 1.4.3? |
I suspect the problem here is that the title is attached to the first axes, but the axis label is attached to the twin. |
1.4.3 suffers from the same issue. |
I know it maybe annoying to users, but I am currently much more worried about regressions (ie things we broke between 1.4.3 and 1.5.0) than long standing bugs. |
This is going to be a tough one to solve. Technically speaking, there is no On Thu, Nov 12, 2015 at 10:06 PM, Thomas A Caswell <[email protected]
|
This is wrapped up in the fact that we need a layout engine. There was a On Fri, Nov 13, 2015 at 9:33 AM Benjamin Root [email protected]
|
Re: "I suspect the problem here is that the title is attached to the first axes, but the axis label is attached to the twin." |
@tacaswell The hard are not the constraits, that mostly busy-work. The hard part |
@jklymak Sorry I ended up not having much time so far to look at your geometry manager PR, but perhaps this issue may be of interest for you... |
I've not dared look at |
OK, I got I'll note that this problem is much more simple than this makes it seem, and has nothing to do with import matplotlib.pyplot as plt
fig, ax = plt. subplots()
ax.xaxis.tick_top()
ax.xaxis.set_label_position('top')
ax.set_xlabel('Parent xlabel')
ax.set_title('Hello') |
Well, I actually did need labels both on top and on bottom (for separate axes). |
Sure, its still an issue. I'm just saying A geometry manager at the sub-axes level would be great too, and probably manageable for xlabel, ylabel, and title. Once we get into tick labels and ticks themselves things get hairy. And some seem to think layout managers would be good for placing legends, etc around data. That hurts my head. Not saying its not all possible, but just getting subplot placement sorted out was tough, and that should be the easy job... |
Closing as a duplicate of #1415 |
matplotlib 1.5.0.
The text was updated successfully, but these errors were encountered: