99from switch_model .tools .graph .main import GraphTools
1010from papers .Martin_Staadecker_Value_of_LDES_and_Factors .LDES_paper_graphs .util import (
1111 get_scenario ,
12- set_style ,
12+ set_style , save_figure ,
1313)
1414
1515scenarios = [
2020 get_scenario ("1342" , "Baseline" ),
2121 get_scenario ("T5" , "10x Tx Build Costs" ),
2222]
23- tools = GraphTools (scenarios = scenarios )
23+ tools = GraphTools (scenarios = scenarios , set_style = False )
2424tools .pre_graphing (multi_scenario = True )
2525
2626tools_supplementary = GraphTools (scenarios = scenarios_supplementary )
@@ -99,7 +99,6 @@ def get_data(scenario_index):
9999set_style ()
100100plt .close ()
101101fig = plt .figure ()
102- fig .set_size_inches (12 , 6 )
103102
104103# Define axes
105104axes = []
@@ -121,7 +120,7 @@ def percent_to_color(percent):
121120def plot (ax , data , legend ):
122121 percent_gen , duration = data
123122
124- max_size = 800
123+ max_size = 400
125124 max = 50
126125 duration ["size" ] = duration ["OnlinePowerCapacityMW" ] / max * max_size
127126 tools .maps .draw_base_map (ax )
@@ -137,8 +136,8 @@ def plot(ax, data, legend):
137136 handles = legend_handles ,
138137 bbox_to_anchor = (0.6 , 0 ),
139138 loc = "lower center" ,
140- fontsize = 8 ,
141- title_fontsize = 10 ,
139+ fontsize = "small" ,
140+ title_fontsize = "small" ,
142141 ncol = 4 ,
143142 )
144143 # Add legend for power capacity
@@ -161,8 +160,8 @@ def plot(ax, data, legend):
161160 ],
162161 bbox_to_anchor = (0.35 , 0 ),
163162 loc = "lower center" ,
164- fontsize = 8 ,
165- title_fontsize = 10 ,
163+ fontsize = "small" ,
164+ title_fontsize = "small" ,
166165 ncol = 3 ,
167166 labelspacing = 1.5 ,
168167 )
@@ -194,14 +193,17 @@ def highlight_zones(zones, ax):
194193 crs = tools .maps .get_projection (),
195194 facecolor = (0 , 0 , 0 , 0 ), # Transparent
196195 edgecolor = "tab:green" ,
197- linewidth = 2 ,
196+ linewidth = 1 ,
198197 # linestyle="--",
199198 # alpha=0,
200199 )
201200
202201
203202highlight_zones (zones_to_highlight , axes [0 ])
204203
204+ # %% SAVE FIGURE
205+ save_figure ("figure-4-baseline-vs-unlimited-tx.png" )
206+
205207# %%
206208df = tools_supplementary .get_dataframe ("storage_capacity.csv" )
207209df = df .set_index ("load_zone" )
0 commit comments