climepi.ClimEpiDatasetAccessor.plot_variance_decomposition#
- ClimEpiDatasetAccessor.plot_variance_decomposition(data_var=None, fraction=False, estimate_internal_variability=True, polyfit_degree=3, **kwargs)#
Plot decomposition of variance from different climate uncertainty sources.
Partitions the variance of a data variable at each time point into contributions from internal variability, model uncertainty and scenario uncertainty, and creates an area plot showing these contributions over time.
Wraps hvplot.area.
- Parameters:
data_var (
str) – Name of the data variable to plot.fraction (
bool, optional) – Whether to plot the variance contributions as fractions of the total variance at each time, rather than the raw variances. Default is False.estimate_internal_variability (
bool, optional) – Whether to estimate internal variability if only a single realization is available for each model and scenario (ignored if multiple realizations are available). Default is True.polyfit_degree (
int, optional) – Degree of the polynomial to fit to the time series if estimating internal variability. Default is 3.**kwargs (
dict, optional) – Additional keyword arguments to pass to hvplot.area.
- Returns:
hvplot object– The resulting plot object.