subplot_grid.__getattr__¶
-
subplot_grid.
__getattr__
(attr)[source]¶ If the attribute is callable, returns a dummy function that loops through each identically named method, calls them in succession, and returns a tuple of the results. This lets you call arbitrary methods on multiple axes at once! If the
subplot_grid
has length1
, just returns the single result. If the attribute is not callable, returns a tuple of attributes for every object in the list.Example
>>> import proplot as plot ... f, axs = plot.subplots(nrows=2, ncols=2) ... axs.format(...) # calls "format" on all subplots in the list ... paxs = axs.panel_axes('r') ... paxs.format(...) # calls "format" on all panels