MCPcopy Create free account
hub / github.com/NatLabRockies/rdtools / plot

Method plot

rdtools/availability.py:620–638  ·  view source on GitHub ↗

Create a figure summarizing the availability analysis results. The analysis must be run using the :py:meth:`.run` method before using this method. Returns ------- fig : matplotlib.figure.Figure

(self)

Source from the content-addressed store, hash-verified

618 self._combine_losses(rollup_period)
619
620 def plot(self):
621 """
622 Create a figure summarizing the availability analysis results. The
623 analysis must be run using the :py:meth:`.run` method before using
624 this method.
625
626 Returns
627 -------
628 fig : matplotlib.figure.Figure
629 """
630 try:
631 self.loss_total
632 except AttributeError:
633 raise TypeError("No results to plot, use the `run` method first")
634
635 return rdtools.plotting.availability_summary_plots(
636 self.power_system, self.power_subsystem, self.loss_total,
637 self.energy_cumulative, self.energy_expected_rescaled,
638 self.outage_info)

Callers 8

test_plot_norunFunction · 0.95
plot_pv_vs_irradianceMethod · 0.80
soiling_monte_carlo_plotFunction · 0.80
soiling_interval_plotFunction · 0.80
test_plotFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_plot_norunFunction · 0.76
test_plotFunction · 0.64