HSGPPeriodic.plot_curve#
- HSGPPeriodic.plot_curve(curve, n_samples=10, hdi_probs=None, random_seed=None, subplot_kwargs=None, sample_kwargs=None, hdi_kwargs=None, axes=None, same_axes=False, colors=None, legend=None, sel_to_string=None)#
Plot the curve.
- Parameters:
- curve
xr.DataArray Curve to plot
- n_samples
int, optional Number of samples
- hdi_probs
float|list[float], optional HDI probabilities. Defaults to None which uses arviz default for stats.ci_prob which is 94%
- random_seed
int|randomnumbergenerator, optional Random number generator. Defaults to None
- subplot_kwargs
dict, optional Additional kwargs to while creating the fig and axes
- sample_kwargs
dict, optional Kwargs for the
plot_samples()function- hdi_kwargs
dict, optional Kwargs for the
plot_hdi()function- same_axesbool
If all of the plots are on the same axis
- colors
Iterable[str], optional Colors for the plots
- legendbool, optional
If to include a legend. Defaults to True if same_axes
- sel_to_string
Callable[[Selection],str], optional Function to convert selection to a string. Defaults to “, “.join(f”{key}={value}” for key, value in sel.items())
- curve
- Returns:
tuple[plt.Figure,npt.NDArray[plt.Axes]]Figure and the axes