mpl.pyplot.GridSpec.get_geometry

GridSpec.get_geometry()

get the geometry of the grid, e.g., 2,3