SubplotGrid

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

Bases: collections.abc.MutableSequence, list

List-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

gridspec

The GridSpec associated with the grid.

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(*args, **kwargs)

Call the format command 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 along the edge of the axes for every axes in the grid.

panel_axes(*args, **kwargs)

Add a panel along the edge of the 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.