SubplotsContainer¶
- class SubplotsContainer(iterable=None, n=1, order='C')[source]¶
Bases:
listList-like class and pseudo-2d array used for the subplots returned by
subplots. See__getattr__and__getitem__for details.- Parameters
iterable (list-like) – 1D iterable of
Axesinstances.n (int, optional) – The length of the fastest-moving dimension, i.e. the number of columns when
orderis'C', and the number of rows whenorderis'F'. Used to treat lists as pseudo-2d arrays.order ({‘C’, ‘F’}, optional) – Whether 1d indexing returns results in row-major (C-style) or column-major (Fortran-style) order, respectively. Used to treat lists as pseudo-2d arrays.
Attributes Summary
The “shape” of the 2d subplot grid assumed when performing 2d indexing.
Methods Summary
__getattr__(attr)If the attribute is callable, return a dummy function that loops through each identically named method, calls them in succession, and returns a tuple of the results.
__getitem__(key)If an integer is passed, the item is returned.
__setitem__(key, value)Raise an error.