Skip to content

Commit

Permalink
Add subplotgrid property
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Aug 17, 2021
1 parent bcea04b commit fb83384
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions proplot/figure.py
Expand Up @@ -1683,6 +1683,14 @@ def gridspec(self, gs):
self._gridspec = gs
gs.figure = self # trigger copying settings from the figure

@property
def subplotgrid(self):
"""
The numbered `~proplot.axes.Axes` subplots in the figure. This
property is read-only.
"""
return SubplotGrid([ax for num, ax in sorted(self._subplot_dict.items())])


# Add deprecated properties. There are *lots* of properties we pass to Figure
# and do not like idea of publicly tracking every single one of them. If we
Expand Down

0 comments on commit fb83384

Please sign in to comment.