otter.plotting.grid_figsize
- otter.plotting.grid_figsize(nrows: int, ncols: int, *, cell_width: float | None = None, cell_height: float | None = None) tuple[float, float][source]
Return the project-standard figure size for a panel grid.
Standard panel sizes depend on the grid shape. A one-panel figure is 6.6 by 4.2 inches; two-column layouts use 5.1 by 3.8 inches per panel; wider grids use progressively narrower panels. Grids with three or more rows use compact row heights. Thus every public figure with the same grid shape has the same canvas size.
cell_widthandcell_heightmay override either standard dimension for a diagnostic whose aspect ratio carries scientific information.
Examples using grid_figsize
Polypropylene (PP/CH2): HNC versus same-potential MD
Polypropylene (PP/CH2): HNC versus same-potential MD
Equilibrium aluminium structure factors: Schörner et al. (2022)
Equilibrium aluminium structure factors: Schörner et al. (2022)
Single-species Starrett–Saumon ion-structure benchmarks
Single-species Starrett--Saumon ion-structure benchmarks
CH1.36: multicomponent electronic-to-ionic workflow
CH1.36: multicomponent electronic-to-ionic workflow