From 2bdf1ce7529b49cf3f2bd778e35f8ec8ebc09351 Mon Sep 17 00:00:00 2001 From: KathiEsterl Date: Mon, 24 Jun 2024 14:28:07 +0200 Subject: [PATCH] Revise fig 7 --- etrago/rev_figures.py | 4 ++-- etrago/tools/plot.py | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/etrago/rev_figures.py b/etrago/rev_figures.py index 4a6daaf7f..45d76af83 100644 --- a/etrago/rev_figures.py +++ b/etrago/rev_figures.py @@ -288,8 +288,8 @@ def foreign_sto_expansion(network): etrago = Etrago(csv_folder_name="Calcs/kmedoids-dijkstra/300") -etrago.plot_grid(line_colors='expansion_abs', bus_colors='storage_expansion', bus_sizes=0.000001, ext_min=0.01, legend_entries=[], boundaries=[0, 20000]) +etrago.plot_grid(line_colors='expansion_abs', bus_colors='storage_expansion', bus_sizes=0.000001, ext_min=0.01, legend_entries=[], boundaries=[0, 7200]) etrago = Etrago(csv_folder_name="Calcs/kmeans/300") -etrago.plot_grid(line_colors='expansion_abs', bus_colors='storage_expansion', bus_sizes=0.000001, ext_min=0.01, legend_entries=[], boundaries=[0, 20000]) \ No newline at end of file +etrago.plot_grid(line_colors='expansion_abs', bus_colors='storage_expansion', bus_sizes=0.000001, ext_min=0.01, legend_entries=[], boundaries=[0, 7200]) \ No newline at end of file diff --git a/etrago/tools/plot.py b/etrago/tools/plot.py index 6719431ff..9244b6cda 100644 --- a/etrago/tools/plot.py +++ b/etrago/tools/plot.py @@ -1847,12 +1847,12 @@ def plot_grid( #scale heat store representation bus_sizes[bus_sizes.index.get_level_values('carrier').str.contains('heat')] /=10 - bus_legend = "Storage expansion" + bus_legend = "storage expansion" bus_unit = "GW" elif bus_colors == "h2_battery_storage_expansion": bus_scaling = bus_sizes bus_sizes = bus_scaling * calc_storage_expansion_per_bus(network, carriers=["battery", "H2_overground", "H2_underground"]) - bus_legend = "Storage expansion" + bus_legend = "storage expansion" bus_unit = "GW" elif bus_colors == "storage_distribution": bus_scaling = bus_sizes @@ -1916,7 +1916,7 @@ def plot_grid( bus_sizes = bus_sizes.reset_index() bus_sizes = bus_sizes[bus_sizes.carrier.str.contains("H2")] bus_sizes.set_index(["bus", "carrier"], inplace=True) - bus_legend = "Storage expansion" + bus_legend = "storage expansion" bus_unit = "GW" else: logger.warning("bus_color {} undefined".format(bus_colors)) @@ -1924,6 +1924,9 @@ def plot_grid( if type(link_widths) != int: link_widths.loc[network.links.carrier != "DC"] = 0 + #import pdb; pdb.set_trace() + link_widths=3 + line_widths=3 ll = network.plot( line_colors=line_colors, link_colors=link_colors, @@ -1934,7 +1937,7 @@ def plot_grid( line_widths=line_widths, link_widths=link_widths, flow=flow, - title=title, + #title=title, geomap=False, projection=ccrs.PlateCarree(), color_geomap=True,