scisalt.matplotlib.scaled_figsize

scisalt.matplotlib.scaled_figsize(X, figsize=None, h_pad=None, v_pad=None)[source]

Given an array X, determine a good size for the figure to be by shrinking it to fit within figsize. If not specified, shrinks to fit the figsize specified by the current matplotlib.rcParams.

New in version 1.3.