diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index 9e4faa2b98a9..9afe44acd5d1 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -196,6 +196,21 @@ def __init__(self, nrows, ncols, figure=None, ncols : int Number or columns in grid. + figure : ~.figure.Figure, optional + + left, right, top, bottom : float + Extent of the subplots as a fraction of figure width or height. + Left cannot be larger than right, and bottom cannot be larger than + top. + + wspace : float + The amount of width reserved for space between subplots, + expressed as a fraction of the average axis width. + + hspace : float + The amount of height reserved for space between subplots, + expressed as a fraction of the average axis height. + Notes ----- See `~.figure.SubplotParams` for descriptions of the layout parameters.