SubplotSpec

class SubplotSpec(gridspec, num1, num2=None)[source]

Bases: matplotlib.gridspec.SubplotSpec

Matplotlib SubplotSpec subclass that adds some helpful methods.

Methods Summary

get_active_geometry()

Returns the number of rows, number of columns, and 1d subplot location indices, ignoring rows and columns allocated for spaces.

get_active_rows_columns()

Returns the number of rows, number of columns, first subplot row, last subplot row, first subplot column, and last subplot column, ignoring rows and columns allocated for spaces.