Skip to content

Commit f0c2c6d

Browse files
authored
Merge pull request #15106 from timhoffm/doc-gridspec2
Update docs of GridSpec
2 parents ac0a423 + a211c01 commit f0c2c6d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/matplotlib/gridspec.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def __init__(self, nrows, ncols, figure=None,
255255
Extent of the subplots as a fraction of figure width or height.
256256
Left cannot be larger than right, and bottom cannot be larger than
257257
top. If not given, the values will be inferred from a figure or
258-
rcParams when necessary. See also `GridSpec.get_subplot_params`.
258+
rcParams at draw time. See also `GridSpec.get_subplot_params`.
259259
260260
wspace : float, optional
261261
The amount of width reserved for space between subplots,
@@ -323,12 +323,16 @@ def update(self, **kwargs):
323323
"""
324324
Update the subplot parameters of the grid.
325325
326+
Parameters that are not explicitly given are not changed. Setting a
327+
parameter to *None* resets it to :rc:`figure.subplot.*`.
328+
326329
Parameters
327330
----------
328-
left, right, top, bottom : float, optional
331+
left, right, top, bottom : float or None, optional
332+
Extent of the subplots as a fraction of figure width or height.
329333
wspace, hspace : float, optional
330-
331-
Values set to None use the rcParams value.
334+
Spacing between the subplots as a fraction of the average subplot
335+
width / height.
332336
"""
333337
for k, v in kwargs.items():
334338
if k in self._AllowedKeys:

0 commit comments

Comments
 (0)