pvcompare.plots.plot_kpi_loop

pvcompare.plots.plot_kpi_loop(variable_name, kpi, scenario_dict, outputs_directory=None)[source]

Plots list of key performance indicators (KPIs) of a ‘mvs_output/scalars_**.xlsx’ file.

Plots KPI’s from the ‘mvs_output/scalars_**.xlsx’ files in loop_outputs for a loop over one variable. The plot is saved into the outputs_directory.

Parameters
  • variable_name (str) – Name of the variable that is changed each loop. Please do not enter white spaces within the string.

  • kpi (list of str) –

    List of KPI’s to be plotted. Possible entries:

    ”Degree of NZE” “Total costs PV”, “Installed capacity PV”, “Total renewable energy use”, “Renewable share”, “LCOE PV”, “Self consumption”, “Self sufficiency”, “Degree of autonomy”, “Total non-renewable energy use”, “Total costs”, “Total annual production”

  • scenario_dict (dict) – Dictionary with the scenario names that should be compared as keys and a label for the scenario as value. e.g.: {“Scenario_A1” : “si”, “Scenario_A2”: “cpv”} Notice: all scenarios you want to compare, need to include the loop-outputs for the same variable / steps. The scenario names should follow the scheme: “Scenario_A1”, “Scenario_A2”, “Scenario_B1” etc.

  • outputs_directory (str or None) – Path to the directory in which the plot should be saved. If None: constants.DEFAULT_OUTPUTS_DIRECTORY is used. Default: None.

Returns

Saves figure into loop_output_directory.

Return type

None