Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72e0128

Browse files
committed
Improve GridSpec doc
1 parent 7effa1e commit 72e0128

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/matplotlib/gridspec.py

Lines 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)