SubplotGrid

class SubplotGrid(**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

iterable (list-like) – An iterable 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)

Call altx for every axes in the grid.

alty(*args, **kwargs)

Call alty for every axes in the grid.

colorbar(*args, **kwargs)

Call colorbar for every axes in the grid.

dualx(*args, **kwargs)

Call dualx for every axes in the grid.

dualy(*args, **kwargs)

Call dualy for every axes in the grid.

format(*args, **kwargs)

Call format for every axes in the grid.

inset(*args, **kwargs)

Call inset for every axes in the grid.

inset_axes(*args, **kwargs)

Call inset_axes for every axes in the grid.

legend(*args, **kwargs)

Call legend for every axes in the grid.

panel(*args, **kwargs)

Call panel for every axes in the grid.

panel_axes(*args, **kwargs)

Call panel_axes for every axes in the grid.

text(*args, **kwargs)

Call text for every axes in the grid.

twinx(*args, **kwargs)

Call twinx for every axes in the grid.

twiny(*args, **kwargs)

Call twiny for every axes in the grid.