How to use the rdtools.plotting.degradation_summary_plots function in rdtools

To help you get started, we’ve selected a few rdtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NREL / rdtools / rdtools / system_analysis.py View on Github external
Extra parameters passed to plotting.degradation_summary_plots()

        Returns
        -------
        matplotlib.figure.Figure

        See Also
        --------
        rdtools.plotting.degradation_summary_plots
        '''

        keys = [f'{result_to_plot}_degradation_results',
                f'{result_to_plot}_aggregated']
        results_dict, aggregated = self.calculate(keys)

        fig = plotting.degradation_summary_plots(
                results_dict['p50_rd'],
                results_dict['rd_confidence_interval'],
                results_dict['calc_info'],
                aggregated,
                **kwargs)
        return fig