| 
29 | 29 | 
 
  | 
30 | 30 | import numpy as np  | 
31 | 31 | 
 
  | 
 | 32 | + | 
32 | 33 | class GridSpecBase(object):  | 
33 | 34 |     """  | 
34 | 35 |     A base class of GridSpec that specifies the geometry of the grid  | 
@@ -187,9 +188,21 @@ def __init__(self, nrows, ncols,  | 
187 | 188 |                  wspace=None, hspace=None,  | 
188 | 189 |                  width_ratios=None, height_ratios=None):  | 
189 | 190 |         """  | 
190 |  | -        The number of rows and number of columns of the  | 
191 |  | -        grid need to be set. Optionally, the subplot layout parameters  | 
192 |  | -        (e.g., left, right, etc.) can be tuned.  | 
 | 191 | +        The number of rows and number of columns of the grid need to be set.  | 
 | 192 | +        Optionally, the subplot layout parameters (e.g., left, right, etc.)  | 
 | 193 | +        can be tuned.  | 
 | 194 | +
  | 
 | 195 | +        Parameters  | 
 | 196 | +        ----------  | 
 | 197 | +        nrows : int  | 
 | 198 | +            Number of rows in grid.  | 
 | 199 | +
  | 
 | 200 | +        ncols : int  | 
 | 201 | +            Number or columns in grid.  | 
 | 202 | +
  | 
 | 203 | +        Notes  | 
 | 204 | +        -----  | 
 | 205 | +        See `~.figure.SubplotParams` for descriptions of the layout parameters.  | 
193 | 206 |         """  | 
194 | 207 |         self.left = left  | 
195 | 208 |         self.bottom = bottom  | 
@@ -239,7 +252,7 @@ def update(self, **kwargs):  | 
239 | 252 | 
 
  | 
240 | 253 |     def get_subplot_params(self, fig=None):  | 
241 | 254 |         """  | 
242 |  | -        return a dictionary of subplot layout parameters. The default  | 
 | 255 | +        Return a dictionary of subplot layout parameters. The default  | 
243 | 256 |         parameters are from rcParams unless a figure attribute is set.  | 
244 | 257 |         """  | 
245 | 258 |         from matplotlib.figure import SubplotParams  | 
 | 
0 commit comments