reV.qa_qc.summary.SupplyCurvePlot
- class SupplyCurvePlot(sc_table)[source]
Bases:
PlotBase
Plot supply curve data for QA/QC
- Parameters:
sc_table (str | pandas.DataFrame) – Supply curve table or path to supply curve .csv
Methods
plot
(sc_table, out_dir[, plot_type, lcoe])Create supply curve plot from supply curve table using lcoe value and save to out_dir
supply_curve_plot
([lcoe, out_path])Plot supply curve (cumulative capacity vs lcoe) using seaborn.scatter
supply_curve_plotly
([lcoe, out_path])Plot supply curve (cumulative capacity vs lcoe) using plotly
Attributes
Available columns in supply curve table
Data to plot
Supply curve table
- property sc_table
Supply curve table
- Returns:
pandas.DataFrame
- property columns
Available columns in supply curve table
- Returns:
list
- supply_curve_plot(lcoe=SupplyCurveField.MEAN_LCOE, out_path=None, **kwargs)[source]
Plot supply curve (cumulative capacity vs lcoe) using seaborn.scatter
- Parameters:
lcoe (str, optional) – LCOE value to plot, by default
SupplyCurveField.MEAN_LCOE
out_path (str, optional) – File path to save plot to, by default None
kwargs (dict) – Additional kwargs for plotting.dataframes.df_scatter
- supply_curve_plotly(lcoe=SupplyCurveField.MEAN_LCOE, out_path=None, **kwargs)[source]
Plot supply curve (cumulative capacity vs lcoe) using plotly
- Parameters:
lcoe (str, optional) – LCOE value to plot, by default SupplyCurveField.MEAN_LCOE
out_path (str, optional) – File path to save plot to, can be a .html or static image, by default None
kwargs (dict) – Additional kwargs for plotly.express.scatter
- classmethod plot(sc_table, out_dir, plot_type='plotly', lcoe=SupplyCurveField.MEAN_LCOE, **kwargs)[source]
Create supply curve plot from supply curve table using lcoe value and save to out_dir
- Parameters:
sc_table (str) – Path to .csv file containing Supply Curve table
out_dir (str) – Output directory to save plots to
plot_type (str, optional) – plot_type of plot to create ‘plot’ or ‘plotly’, by default ‘plotly’
lcoe (str, optional) – LCOE value to plot, by default
SupplyCurveField.MEAN_LCOE
kwargs (dict) – Additional plotting kwargs
- property data
Data to plot
- Returns:
pandas.DataFrame | ndarray