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 84e16e7

Browse filesBrowse files
authored
Merge pull request #13562 from meeseeksmachine/auto-backport-of-pr-13560-on-v3.1.x
Backport PR #13560 on branch v3.1.x (Improve GridSpec doc)
2 parents 36acbcd + f8e3c44 commit 84e16e7
Copy full SHA for 84e16e7

File tree

Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed

‎lib/matplotlib/gridspec.py

Copy file name to clipboardExpand all lines: lib/matplotlib/gridspec.py
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,27 @@ def __init__(self, nrows, ncols, figure=None,
204204
ncols : int
205205
Number or columns in grid.
206206
207-
figure : ~.figure.Figure, optional
207+
figure : `~.figure.Figure`, optional
208208
209-
left, right, top, bottom : float
209+
left, right, top, bottom : float, optional
210210
Extent of the subplots as a fraction of figure width or height.
211211
Left cannot be larger than right, and bottom cannot be larger than
212212
top.
213213
214-
wspace : float
214+
wspace : float, optional
215215
The amount of width reserved for space between subplots,
216216
expressed as a fraction of the average axis width.
217217
218-
hspace : float
218+
hspace : float, optional
219219
The amount of height reserved for space between subplots,
220220
expressed as a fraction of the average axis height.
221221
222+
width_ratios : length *ncols* iterable, optional
223+
Width ratios of the columns.
224+
225+
height_ratios : length *nrows* iterable, optional
226+
Height ratios of the rows.
227+
222228
Notes
223229
-----
224230
See `~.figure.SubplotParams` for descriptions of the layout parameters.

0 commit comments

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