reVReports.plots.make_bar_plot#
- make_bar_plot(data_df, y_col, ylabel, scenario_palette, out_image_path, dpi)[source]#
Create a bar plot comparing scenario totals
- Parameters:
data_df (
pandas.DataFrame) – Dataframe containing pre-aggregated scenario totals.y_col (
str) – Column name that holds the metric to plot on the y-axis.ylabel (
str) – Axis label describing the plotted metric.scenario_palette (
dict) – Mapping of scenario names to palette colors, used for ordering.out_image_path (
pathlib.Path) – Destination path for the saved figure.dpi (
int) – Resolution used when writing the figure to disk.