solarwindpy.plotting.tools.calculate_nrows_ncols
- calculate_nrows_ncols(n)[source]
Determine a sensible
(nrows, ncols)pair fornaxes.The heuristic attempts to generate a nearly square layout while also taking typical display aspect ratios into account.
- Parameters:
n (int) – Total number of axes required.
- Returns:
nrows (int)
ncols (int)
Examples
>>> calculate_nrows_ncols(5) (...2..., ...3...)