pypomp.core.pomp.Pomp.plot_simulations

Pomp.plot_simulations(key: Array, nsim: int = 20, mode: str = 'lines', theta: Mapping[str, int | float | number | Array] | Sequence[Mapping[str, int | float | number | Array]] | pypomp.core.parameters.PompParameters | None = None, show: bool = True) Any[source]

Generates an interactive plot comparing simulated trajectories from the model against the actual observed data.

This visualization helps assess whether the model (with its current parameters) produces behavior that is qualitatively similar to the observed system. It can display individual simulated paths (‘lines’) or confidence intervals (‘quantiles’) to represent the distribution of possible outcomes.

Parameters:
  • key (jax.Array) – JAX random key for simulation.

  • nsim (int) – Number of simulations to perform. Defaults to 20.

  • mode (str) – Plotting mode, either “lines” (individual sims) or “quantiles” (shaded region). Defaults to “lines”.

  • theta (ThetaInput, optional) – Parameters to use for simulation. Defaults to the first replicate in self.theta.

  • show (bool) – Whether to display the plot. Defaults to True.