rdtools.analysis_chains.TrendAnalysis.plot_degradation_timeseries

TrendAnalysis.plot_degradation_timeseries(case, rolling_days=365, center=None, **kwargs)

Plot resampled time series of degradation trend with time

Parameters:
  • case (str) -- The workflow result to plot, allowed values are 'sensor' and 'clearsky'

  • rolling_days (int, default 365) -- Number of days for rolling window. The window must contain at least rolling_days // min_periods_divisor datapoints to be included in the rolling plot; see rdtools.plotting.degradation_timeseries_plot() for details on min_periods_divisor and its pending default change.

  • center (bool, default False) -- If True, the rolling window is centered and results are reindexed using center timestamps before any calculations are performed. The recommended value is True; the default of False is retained only for backward compatibility. A warning is raised when this argument is not explicitly supplied.

  • kwargs -- Extra parameters passed to rdtools.plotting.degradation_timeseries_plot()

Return type:

matplotlib.figure.Figure