Visualization API#

pyCRO.visual.plot_RO_par(par, ax=None, keys=None, ncol=4, label=None)#

Plot deterministic RO parameter seasonal cycles.

Parameters:
  • par (dict) – Dictionary of fitted CRO parameters. Each key (e.g., ‘R’, ‘F1’, etc.) maps to an array of length 1, 3, or 5.

  • ax (matplotlib axis or ndarray, optional) – Axis or array of axes to plot on. If None, creates a new figure/axes.

  • keys (list of str, optional) – Which parameters to plot. If None, uses a default set.

  • ncol (int, default=4) – Number of columns for subplot layout.

pyCRO.visual.plot_ens_RO_par(par, ax=None, keys=None, ncol=4, label=None, spread=None, center='mean', show_members=False, alpha=0.25, member_alpha=0.08)#

Plot ensemble RO parameters.

Parameters:
  • par (dict or list of dict) –

    Either

    • fitted parameter dictionary (single fit)

    or

    • list of fitted parameter dictionaries returned by multiple RO_fitting calls.

  • spread ({None, "std", "q10_q90", "iqr"}, optional) – Ensemble spread to plot.

  • show_members (bool) – Plot all ensemble members.