class subplot_grid(objs, n=1, order='C')[source]

Bases: list

List subclass and pseudo-2d array that is used as a container for the list of axes returned by subplots. See __getattr__ and __getitem__ for details.

  • objs (list-like) – 1d iterable of Axes instances.

  • n (int, optional) – The length of the fastest-moving dimension, i.e. the number of columns when order is 'C', and the number of rows when order is '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 subplot grid.

Methods Summary


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.


If an integer is passed, the item is returned.

__setitem__(key, value)

Pseudo immutability.