pypomp.Pomp.plot_simulations¶
- Pomp.plot_simulations(key: Array, nsim: int = 20, mode: str = 'lines', theta: PompParameters | None = None, show: bool = True) Any¶
Plot simulated trajectories alongside the observed data.
Generates an interactive Plotly figure overlaying
nsimsimulated observation trajectories on the actualysdata, helping to assess qualitative goodness-of-fit.- Parameters:
key (jax.Array) – JAX random key for simulation.
nsim (int, optional) – Number of simulation replicates. Defaults to
20.mode (str, optional) – Plot mode:
"lines"shows individual trajectories;"quantiles"shows a shaded quantile band. Defaults to"lines".theta (PompParameters or None, optional) – Parameter set to simulate from. Defaults to the first replicate of
theta.show (bool, optional) – Whether to call
fig.show()before returning. Defaults toTrue.
- Returns:
The Plotly figure object.
- Return type:
plotly.graph_objects.Figure or None