environmentaltools.graphics.bivariate_ensemble_pdf
- environmentaltools.graphics.bivariate_ensemble_pdf(df_sim: DataFrame, df_obs: dict, varp: list, file_name: str = None)[source]
Plot ensemble of bivariate PDFs comparing simulation with multiple observations.
Displays a grid of contour plots showing the bivariate probability density function for a simulation and multiple observational datasets.
- Parameters:
df_sim (pd.DataFrame) – Simulated time series data.
df_obs (dict) – Dictionary where each key contains an observed time series DataFrame. Each will be plotted in a separate subplot.
varp (list) – List of two variable names [var1, var2] to plot.
file_name (str, optional) – File path to save the plot. If None, displays interactively. Defaults to None.
- Returns:
Array of axes with the plots.
- Return type:
matplotlib.axes.Axes
Note
Creates 3x3 grid with simulation in first subplot and observations following.