opt_fig_div

hep_spt.opt_fig_div(naxes)[source]

Get the optimal figure division for a given number of axes, where all the axes have the same dimensions. For non-perfect square numbers, this algorithm preferes to increase the number of columns instead of the number of rows.

Parameters

naxes (int) – number of axes to plot in the figure.

Returns

Number of rows and columns of axes to draw.

Return type

int, int