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 plotlocation_name (
str) – Location name for labelling (used in axis/legend, not title)filename (
str) – Output filenamemetric_label (
str) – Colorbar labelcmap (
str) – Matplotlib colormap name
- Return type: