matplotlib.gridspec.GridSpecBase

class matplotlib.gridspec.GridSpecBase(nrows, ncols, height_ratios=None, width_ratios=None)

A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed.

The number of rows and number of columns of the grid need to be set. Optionally, the ratio of heights and widths of rows and columns can be specified.

get_geometry()

get the geometry of the grid, e.g., 2,3

get_grid_positions(fig)

return lists of bottom and top position of rows, left and right positions of columns.

get_height_ratios()
get_subplot_params(fig=None)
get_width_ratios()
new_subplotspec(loc, rowspan=1, colspan=1)

create and return a SuplotSpec instance.

set_height_ratios(height_ratios)
set_width_ratios(width_ratios)

© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.gridspec.GridSpecBase.html