scisalt.matplotlib.setup_axes¶
-
scisalt.matplotlib.setup_axes(rows=1, cols=1, figsize=(8, 6), expand=True, **kwargs)[source]¶ Sets up a figure of size figsize with a number of rows (rows) and columns (cols). **kwargs passed through to
matplotlib.figure.Figure.add_subplot.New in version 1.2.
Parameters: rows : int
Number of rows to create.
cols : int
Number of columns to create.
figsize : tuple
Size of figure to create.
expand : bool
Make the entire figure with size figsize.
Returns: fig :
matplotlib.figure.FigureThe figure.
axes :
numpy.ndarrayAn array of all of the axes. (Unless there’s only one axis, in which case it returns an object instance
matplotlib.axis.Axis.)