Skip to content

Commit 67c7dca

Browse files
authored
Merge pull request #15044 from dstansby/set_size-npydc
DOC: numpydoc set_size_inches docstring
2 parents 453ff14 + b806987 commit 67c7dca

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/matplotlib/figure.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,18 +876,24 @@ def figimage(self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None,
876876
return im
877877

878878
def set_size_inches(self, w, h=None, forward=True):
879-
"""Set the figure size in inches.
879+
"""
880+
Set the figure size in inches.
880881
881882
Call signatures::
882883
883884
fig.set_size_inches(w, h) # OR
884885
fig.set_size_inches((w, h))
885886
886-
optional kwarg *forward=True* will cause the canvas size to be
887-
automatically updated; e.g., you can resize the figure window
888-
from the shell
889-
890-
ACCEPTS: a (w, h) tuple with w, h in inches
887+
Parameters
888+
----------
889+
w : (float, float) or float
890+
Width and height in inches (if height not specified as a separate
891+
argument) or width.
892+
h : float
893+
Height in inches.
894+
forward : bool, default: True
895+
If ``True``, the canvas size is automatically updated, e.g.,
896+
you can resize the figure window from the shell.
891897
892898
See Also
893899
--------

0 commit comments

Comments
 (0)