CADETProcess.plotting.get_fig_size#
- CADETProcess.plotting.get_fig_size(layout: Literal['1_col', '1_5_col', '2_col'] = '1_col', nrows: int = 1, ncols: int = 1, aspect: float | None = None, scale_with_subplots: bool = False, padding: float = 0.0, figsize: tuple[float, float] | None = None) tuple[float, float][source]#
Compute a publication-ready figure size in inches.
- Parameters:
- layout: Literal[“1_col”, “1_5_col”, “2_col”] = “1_col”,
Figure layout.
- nrowsint
Number of subplot rows.
- ncolsint
Number of subplot columns.
- aspectfloat | None
Width / height ratio. If provided, overrides preset height.
- scale_with_subplotsbool
If True, multiply width/height by ncols/nrows.
- paddingfloat
Extra inches to add.
- figsizetuple[float, float] | None
Override width/height directly.
- Returns:
- width, heighttuple[float, float]