-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: "Setting layouts" plots' label size GH34305 #34394
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
Conversation
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.
Thanks @najann !
So, like this, the first plot I put in the original issue is now legibile - great!
The second one hasn't changed though - could you update that one too?
.. ipython:: python | ||
:suppress: | ||
|
||
import matplotlib | ||
|
||
matplotlib.rc('xtick', labelsize=8) | ||
|
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.
I'm not sure this should be hidden - if someone wants to reproduce the plot and it looks different, that might be confusing. Would simply increasing the figsize
in plt.subplots
be enough to make it more legible? Otherwise, can matplotlib.rc('xtick', labelsize=8)
be made visible to the readers?
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.
You're right, I just did not want to mess up the code snippet... but increasing fig size is equally fine!
@@ -1369,6 +1377,7 @@ Another option is passing an ``ax`` argument to :meth:`Series.plot` to plot on a | |||
.. ipython:: python | |||
|
|||
fig, axes = plt.subplots(nrows=2, ncols=2) | |||
plt.subplots_adjust(wspace=0.2, hspace=0.4) |
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.
Nice! Sorry for the nitpick, but could hspace be increased slightly more so there's visual separation between the labels of the top subplots and the titles of the bottom ones?
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.
Of course!
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.
Looks much nicer like this - thanks @najann !
Great thanks @najann |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff