-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Changed tight_layout doc strings #11061
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
lib/matplotlib/figure.py
Outdated
Defaults to `pad_inches`. | ||
|
||
Padding between the figure edge and the edges of subplots, | ||
as a fraction of the font size. |
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.
which fontsize? Otherwise, looks good....
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.
Here is the actual code
font_size_inches = (
FontProperties(size=rcParams["font.size"]).get_size_in_points() / 72)
But that part has been in the doc string the "whole" time. The part I changed is both difficult to understand and actually wrong.
There's a couple of PEP8 errors; I think you need to get rid of trailing spaces at the end of the lines added. Otherwise looks good! https://travis-ci.org/matplotlib/matplotlib/jobs/367305794#L2427 |
|
||
Padding between the figure edge and the edges of subplots, | ||
as a fraction of the font size. | ||
h_pad, w_pad : float |
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.
Should stay "optional". Instead, please add "optional" to the pyplot docstring.
2c4eb8c
to
5fb99d6
Compare
Can you please rebase on the current master. It contains fixes for the CircleCI builds, which were broken by the release of pip 10. If you need a desciption for rebaseing see here. |
5fb99d6
to
2545117
Compare
Thanks a lot @fredrik-1 ! |
I didn't understand what pad_inches in the
h_pad
,w_pad
default was so I copied part of the doc string fromauto_adjust_subplotpars
intight_layout
where the default was correctly explained.