SubplotGrid¶
- class SubplotGrid(sequence=None, **kwargs)[source]¶
Bases:
collections.abc.MutableSequence,listList-like object used to store subplots returned by
subplots. 1D indexing uses the underlying list ofAxeswhile 2D indexing uses thegridspec. See__getitem__for details.- Parameters
sequence (sequence) – A sequence of
proplot.axes.Axessubplots or their children.
Attributes Summary
The
proplot.figure.Figureuniquely associated with thisSubplotGrid.The
GridSpecuniquely associated with thisSubplotGrid.The shape of the
GridSpecassociated with the grid.Methods Summary
__getattr__(attr)Get a missing attribute.
__getitem__(key)Get an axes.
__setitem__(key, value)Add an axes.
altx(*args, **kwargs)Add an axes locked to the same location with a distinct x axis for every axes in the grid.
alty(*args, **kwargs)Add an axes locked to the same location with a distinct y axis for every axes in the grid.
dualx(*args, **kwargs)Add an axes locked to the same location whose x axis denotes equivalent coordinates in alternate units for every axes in the grid.
dualy(*args, **kwargs)Add an axes locked to the same location whose y axis denotes equivalent coordinates in alternate units for every axes in the grid.
format(**kwargs)Call the
formatcommand for every axes in the grid.inset(*args, **kwargs)Add an inset axes for every axes in the grid.
inset_axes(*args, **kwargs)Add an inset axes for every axes in the grid.
panel(*args, **kwargs)Add a panel axes for every axes in the grid.
panel_axes(*args, **kwargs)Add a panel axes for every axes in the grid.
twinx(*args, **kwargs)Add an axes locked to the same location with a distinct y axis for every axes in the grid.
twiny(*args, **kwargs)Add an axes locked to the same location with a distinct x axis for every axes in the grid.