Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4c6cb9

Browse filesBrowse files
committed
DOC: correct off by one indentation.
the off by one made it look like to rst/numpydoc that the parameters h_pad, w_pad ... etc are part of the indented block of the `rendered` parameter. This is not rendered on the matplotlib doc AFAICT, but no reason to have it wrong...
1 parent 9d12377 commit f4c6cb9
Copy full SHA for f4c6cb9

File tree

Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-9
lines changed

‎lib/matplotlib/_constrained_layout.py

Copy file name to clipboardExpand all lines: lib/matplotlib/_constrained_layout.py
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
7474
renderer : Renderer
7575
Renderer to use.
7676
77-
h_pad, w_pad : float
78-
Padding around the axes elements in figure-normalized units.
79-
80-
hspace, wspace : float
81-
Fraction of the figure to dedicate to space between the
82-
axes. These are evenly spread between the gaps between the axes.
83-
A value of 0.2 for a three-column layout would have a space
84-
of 0.1 of the figure width between each column.
85-
If h/wspace < h/w_pad, then the pads are used instead.
77+
h_pad, w_pad : float
78+
Padding around the axes elements in figure-normalized units.
79+
80+
hspace, wspace : float
81+
Fraction of the figure to dedicate to space between the
82+
axes. These are evenly spread between the gaps between the axes.
83+
A value of 0.2 for a three-column layout would have a space
84+
of 0.1 of the figure width between each column.
85+
If h/wspace < h/w_pad, then the pads are used instead.
8686
"""
8787

8888
# list of unique gridspecs that contain child axes:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.