SubplotGrid

class SubplotGrid(sequence=None, **kwargs)[source]

Bases: MutableSequence, list

List-like, array-like object used to store subplots returned by subplots. 1D indexing uses the underlying list of Axes while 2D indexing uses the gridspec. See __getitem__ for details.

Parameters

sequence (sequence) – A sequence of proplot.axes.Axes subplots or their children.

Attributes Summary

figure

The proplot.figure.Figure uniquely associated with this SubplotGrid.

gridspec

The GridSpec uniquely associated with this SubplotGrid.

shape

The shape of the GridSpec associated 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 format command for the figure and 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.