breos.plotting.plot_location_comparison_delta#

breos.plotting.plot_location_comparison_delta(delta_data, results_directory, loc_a, loc_b, filename='grid_independence_delta.png', metric_label='Grid Independence Delta (pp)')[source]#

Plot a diverging heatmap of the difference in a metric between two locations.

Parameters:
  • delta_data (DataFrame) – DataFrame with battery capacity as index, module counts as columns, and loc_a - loc_b values in percentage points.

  • results_directory (str) – Directory to save the plot

  • loc_a (str) – Name of location A

  • loc_b (str) – Name of location B

  • filename (str) – Output filename

  • metric_label (str) – Colorbar label

Return type:

None