-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: fix layout pad #25031
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
DOC: fix layout pad #25031
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,7 +203,7 @@ def __init__(self, *, h_pad=None, w_pad=None, | |
Parameters | ||
---------- | ||
h_pad, w_pad : float | ||
Padding around the axes elements in figure-normalized units. | ||
Padding around the axes elements in inches. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We did this one at #24981 Edit: sorry I just noticed you are targetting this for 3.7. So this one stands 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't being that subtle - I didn't catch that it was done in #24981. |
||
Default to :rc:`figure.constrained_layout.h_pad` and | ||
:rc:`figure.constrained_layout.w_pad`. | ||
hspace, wspace : 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.
I think this one was correct, because the layout engine does the normalisation before calling this function
matplotlib/lib/matplotlib/layout_engine.py
Lines 246 to 254 in be7ea76
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.
....oh, thats why its so confused. OK, I'll look into it more carefully.