8000 Use numpydoc for GridSpecFromSubplotSpec.__init__ · timhoffm/matplotlib@79a29b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79a29b6

Browse files
committed
Use numpydoc for GridSpecFromSubplotSpec.__init__
1 parent a142369 commit 79a29b6

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

lib/matplotlib/gridspec.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,19 @@ def __init__(self, nrows, ncols,
490490
wspace=None, hspace=None,
491491
height_ratios=None, width_ratios=None):
492492
"""
493-
The number of rows and number of columns of the grid need to
494-
be set. An instance of SubplotSpec is also needed to be set
495-
from which the layout parameters will be inherited. The wspace
496-
and hspace of the layout can be optionally specified or the
497-
default values (from the figure or rcParams) will be used.
493+
Parameters
494+
----------
495+
nrows, ncols : int
496+
Number of rows and number of columns of the grid.
497+
subplot_spec : SubplotSpec
498+
Spec from which the layout parameters are inherited.
499+
wspace, hspace : float, optional
500+
See `GridSpec` for more details. If not specified default values
501+
(from the figure or rcParams) are used.
502+
height_ratios : array-like of length *nrows*, optional
503+
See `GridSpecBase` for details.
504+
width_ratios : array-like of length *ncols*, optional
505+
See `GridSpecBase` for details.
498506
"""
499507
self._wspace = wspace
500508
self._hspace = hspace

0 commit comments

Comments
 (0)
0