rdtools.plotting.degradation_summary_plots¶
-
rdtools.plotting.
degradation_summary_plots
(yoy_rd, yoy_ci, yoy_info, normalized_yield, hist_xmin=None, hist_xmax=None, bins=None, scatter_ymin=None, scatter_ymax=None, plot_color=None, summary_title=None, scatter_alpha=0.5, detailed=False)¶ Create plots (scatter plot and histogram) that summarize degradation analysis results.
- Parameters
yoy_rd (
float
) -- rate of relative performance change in %/yryoy_ci (
float
) -- one-sigma confidence interval of degradation rate estimateyoy_info (
dict
) --a dictionary with keys:
YoY_values - pandas series of right-labeled year on year slopes
renormalizing_factor - float value used to recenter data
exceedance_level - the degradation rate that was outperformed with a probability given by the
exceedance_prob
parameter in thedegradation.degradation_year_on_year()
normalized_yield (
pandas.Series
) -- PV yield data that is normalized, filtered and aggregatedhist_xmin (
float
, optional) -- lower limit of x-axis for the histogramhist_xmax (
float
, optional) -- upper limit of x-axis for the histogrambins (
int
, optional) -- Number of bins in the histogram distribution. If omitted,len(yoy_values) // 40
will be usedscatter_ymin (
float
, optional) -- lower limit of y-axis for the scatter plotscatter_ymax (
float
, optional) -- upper limit of y-axis for the scatter plotplot_color (
str
, optional) -- color of the summary plotssummary_title (
str
, optional) -- overall title for summary plotsscatter_alpha (
float
, default0.5
) -- Transparency of the scatter plotdetailed (
bool
, optional) -- Color code points by the number of times they get used in calculating Rd slopes. Default color: 2 times (as a start and endpoint). Green: 1 time. Red: 0 times.
Note
It should be noted that the yoy_rd, yoy_ci and yoy_info are the outputs from
degradation.degradation_year_on_year()
.- Returns
fig -- Figure with two axes
- Return type