sysplot.get_figsize#
- get_figsize(nrows=1, ncols=1, nmax=None)[source]#
Calculate figure dimensions for a subplot grid.
Scales the base figure size from the active
figure_sizeby the number of rows and columns, capping each dimension atnmaxtimes the base size to prevent excessively large figures.- Parameters:
nrows (
int) – Number of subplot rows. Must be >= 1.ncols (
int) – Number of subplot columns. Must be >= 1.nmax (
int|None) – Maximum scale factor per dimension. Defaults tofigure_size_nmax.
- Return type:
tuple[float,float]- Returns:
Figure dimensions as
(width, height)in inches.
Examples using
sysplot.get_figsize#