From an mpl.axes.Subplot obj, I can find out information about the grid pattern via
geom = obj \
.get_subplotspec() \
.get_topmost_subplotspec()\
.get_geometry()
For example, the product geom[0] * geom[1] gives the maximum number of subplots in the grid.
Q: Is there a way for finding out how many subplots there actually are?