breos.plotting.plot_grid_independence_heatmap#

breos.plotting.plot_grid_independence_heatmap(pivot_data, results_directory, location_name, filename='grid_independence_heatmap.png', metric_label='Grid Independence (%)', cmap='YlGnBu', vmin=None, vmax=None)[source]#

Plot a heatmap of grid independence (or other metric) vs system size.

Parameters:
  • pivot_data (DataFrame) – DataFrame with battery capacity as index, module counts as columns, and metric values in the cells.

  • results_directory (str) – Directory to save the plot

  • location_name (str) – Location name for labelling (used in axis/legend, not title)

  • filename (str) – Output filename

  • metric_label (str) – Colorbar label

  • cmap (str) – Matplotlib colormap name

  • vmin (Optional[float]) – Colorbar minimum (auto if None)

  • vmax (Optional[float]) – Colorbar maximum (auto if None)

Return type:

None