matplotlib / 3.4.3 / _as_gen / mpl_toolkits.axes_grid1.axes_divider.subplotdivider.html /

mpl_toolkits.axes_grid1.axes_divider.SubplotDivider

class mpl_toolkits.axes_grid1.axes_divider. SubplotDivider ( fig, *args, horizontal=None, vertical=None, aspect=None, anchor='C' ) [source]

Bases: mpl_toolkits.axes_grid1.axes_divider.Divider

The Divider class whose rectangle area is specified as a subplot geometry.

Parameters:
fig matplotlib.figure.Figure
*args tuple (nrows, ncols, index) or int

The array of subplots in the figure has dimensions (nrows, ncols), and index is the index of the subplot being created. index starts at 1 in the upper left corner and increases to the right.

If nrows, ncols, and index are all single digit numbers, then args can be passed as a single 3-digit number (e.g. 234 for (2, 3, 4)).

__init__ ( fig, *args, horizontal=None, vertical=None, aspect=None, anchor='C' ) [source]
Parameters:
fig matplotlib.figure.Figure
*args tuple (nrows, ncols, index) or int

The array of subplots in the figure has dimensions (nrows, ncols), and index is the index of the subplot being created. index starts at 1 in the upper left corner and increases to the right.

If nrows, ncols, and index are all single digit numbers, then args can be passed as a single 3-digit number (e.g. 234 for (2, 3, 4)).

__module__ = 'mpl_toolkits.axes_grid1.axes_divider'
change_geometry ( numrows, numcols, num ) [source]

[Deprecated] Change subplot geometry, e.g., from (1, 1, 1) to (2, 2, 3).

Notes

Deprecated since version 3.4.

property figbox
get_geometry ( ) [source]

[Deprecated] Get the subplot geometry, e.g., (2, 2, 3).

Notes

Deprecated since version 3.4.

get_position ( ) [source]

Return the bounds of the subplot box.

get_subplotspec ( ) [source]

Get the SubplotSpec instance.

set_subplotspec ( subplotspec ) [source]

Set the SubplotSpec instance.

update_params ( ) [source]

[Deprecated]

Notes

Deprecated since version 3.4:

Examples using mpl_toolkits.axes_grid1.axes_divider.SubplotDivider

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.3/api/_as_gen/mpl_toolkits.axes_grid1.axes_divider.SubplotDivider.html