@@ -140,30 +140,24 @@ def __init__(self, fig,
140140 axes_class = None ,
141141 ):
142142 """
143- Build an :class:`Grid` instance with a grid nrows*ncols
144- :class:`~matplotlib.axes.Axes` in
145- :class:`~matplotlib.figure.Figure` *fig* with
146- *rect=[left, bottom, width, height]* (in
147- :class:`~matplotlib.figure.Figure` coordinates) or
148- the subplot position code (e.g., "121").
149-
150- Optional keyword arguments:
151-
152- ================ ======== =========================================
153- Keyword Default Description
154- ================ ======== =========================================
155- direction "row" [ "row" | "column" ]
156- axes_pad 0.02 float| pad between axes given in inches
157- or tuple-like of floats,
158- (horizontal padding, vertical padding)
159- add_all True bool
160- share_all False bool
161- share_x True bool
162- share_y True bool
163- label_mode "L" [ "L" | "1" | "all" ]
164- axes_class None a type object which must be a subclass
165- of :class:`~matplotlib.axes.Axes`
166- ================ ======== =========================================
143+ Parameters
144+ ----------
145+ fig : Figure
146+ The parent figure.
147+ rect : (float, float, float, float) or int
148+ The axes position, as a ``(left, bottom, width, height)`` tuple or
149+ as a three-digit subplot position code (e.g., "121").
150+ direction : {"row", "column"}, defaults to "row"
151+ axes_pad : float or (float, float), defaults to 0.02
152+ Padding or (horizontal padding, vertical padding) between axes, in
153+ inches.
154+ add_all : bool, defaults to True
155+ share_all : bool, defaults to False
156+ share_x : bool, defaults to True
157+ share_y : bool, defaults to True
158+ label_mode : {"L", "1", "all"}, defaults to "L"
159+ axes_class : a type that is a subclass of `matplotlib.axes.Axes`, \
160+ defaults to None
167161 """
168162 self ._nrows , self ._ncols = nrows_ncols
169163
@@ -437,38 +431,30 @@ def __init__(self, fig,
437431 axes_class = None ,
438432 ):
439433 """
440- Build an :class:`ImageGrid` instance with a grid nrows*ncols
441- :class:`~matplotlib.axes.Axes` in
442- :class:`~matplotlib.figure.Figure` *fig* with
443- *rect=[left, bottom, width, height]* (in
444- :class:`~matplotlib.figure.Figure` coordinates) or
445- the subplot position code (e.g., "121").
446-
447- Optional keyword arguments:
448-
449- ================ ======== =========================================
450- Keyword Default Description
451- ================ ======== =========================================
452- direction "row" [ "row" | "column" ]
453- axes_pad 0.02 float| pad between axes given in inches
454- or tuple-like of floats,
455- (horizontal padding, vertical padding)
456- add_all True bool
457- share_all False bool
458- aspect True bool
459- label_mode "L" [ "L" | "1" | "all" ]
460- cbar_mode None [ "each" | "single" | "edge" ]
461- cbar_location "right" [ "left" | "right" | "bottom" | "top" ]
462- cbar_pad None
463- cbar_size "5%"
464- cbar_set_cax True bool
465- axes_class None a type object which must be a subclass
466- of axes_grid's subclass of
467- :class:`~matplotlib.axes.Axes`
468- ================ ======== =========================================
469-
470- *cbar_set_cax* : if True, each axes in the grid has a cax
471- attribute that is bind to associated cbar_axes.
434+ Parameters
435+ ----------
436+ fig : Figure
437+ The parent figure.
438+ rect : (float, float, float, float) or int
439+ The axes position, as a ``(left, bottom, width, height)`` tuple or
440+ as a three-digit subplot position code (e.g., "121").
441+ direction : {"row", "column"}, defaults to "row"
442+ axes_pad : float or (float, float), defaults to 0.02
443+ Padding or (horizontal padding, vertical padding) between axes, in
444+ inches.
445+ add_all : bool, defaults to True
446+ share_all : bool, defaults to False
447+ aspect : bool, defaults to True
448+ label_mode : {"L", "1", "all"}, defaults to "L"
449+ cbar_mode : {"each", "single", "edge", None }, defaults to None
450+ cbar_location : {"left", "right", "bottom", "top"}, defaults to "right"
451+ cbar_pad : float, defaults to None
452+ cbar_size : size specification (see `.Size.from_any`), defaults to "5%"
453+ cbar_set_cax : bool, defaults to True
454+ If True, each axes in the grid has a *cax* attribute that is bound
455+ to associated *cbar_axes*.
456+ axes_class : a type that is a subclass of `matplotlib.axes.Axes`, \
457+ defaults to None
472458 """
473459 self ._nrows , self ._ncols = nrows_ncols
474460
0 commit comments