Skip to content

Commit 04c9480

Browse files
committed
set plot resolution to 300 dpi
1 parent cf29273 commit 04c9480

3 files changed

+8
-8
lines changed

03_postprocess_wtp.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
axs.set_title("")
7575
axs.axis('off')
7676
plt.tight_layout()
77-
plt.savefig(figures_dir / f'map_soco_{data_ver}.png', dpi=200)
77+
plt.savefig(figures_dir / f'map_soco_{data_ver}.png', dpi=300)
7878
plt.close()
7979

8080
fig, axs = plt.subplots(figsize=(7, 5))
@@ -84,7 +84,7 @@
8484
axs.set_title("")
8585
axs.axis('off')
8686
plt.tight_layout()
87-
plt.savefig(figures_dir / f'map_lcoe_{data_ver}.png', dpi=200)
87+
plt.savefig(figures_dir / f'map_lcoe_{data_ver}.png', dpi=300)
8888
plt.close()
8989

9090
logging.info('Maps of Local Social Cost and LCOE plotted')
@@ -123,7 +123,7 @@
123123
plt.grid(alpha=0.4)
124124
ax.set_axisbelow(True)
125125
plt.tight_layout()
126-
plt.savefig(atlas.path / f'figures/dist_soco_{data_ver}.png', dpi=200)
126+
plt.savefig(atlas.path / f'figures/dist_soco_{data_ver}.png', dpi=300)
127127
plt.close()
128128

129129
logging.info('Cost distributions plotted')
@@ -157,6 +157,6 @@
157157
fig.delaxes(axes[j])
158158
# Adjust layout
159159
plt.tight_layout()
160-
plt.savefig(atlas.path / f'figures/soco_facet{sens_name}.png', dpi=200)
160+
plt.savefig(atlas.path / f'figures/soco_facet{sens_name}.png', dpi=300)
161161
plt.close()
162162
logging.info("Facet of social cost variables plotted")

04_optimal_siting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"Vestas.V100.1800", "Vestas.V100.2000", "Vestas.V112.3075"
2121
]
2222
if 'capacity_factors' not in atlas.wind.data.data_vars:
23-
atlas.wind.simulate_capacity_factors(bias_correction=0.71197) # 0.71197
23+
atlas.wind.simulate_capacity_factors(bias_correction=0.71197)
2424
if 'lcoe' not in atlas.wind.data.data_vars:
2525
atlas.wind.compute_lcoe(turbine_cost_share=0.7)
2626
if 'min_lcoe' not in atlas.wind.data.data_vars:

05_postprocess_sites.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"Vestas.V100.1800", "Vestas.V100.2000", "Vestas.V112.3075"
3434
]
3535
if 'capacity_factors' not in atlas.wind.data.data_vars:
36-
atlas.wind.simulate_capacity_factors(bias_correction=0.71197) # 0.71197
36+
atlas.wind.simulate_capacity_factors(bias_correction=0.71197)
3737
if 'lcoe' not in atlas.wind.data.data_vars:
3838
atlas.wind.compute_lcoe(turbine_cost_share=0.7)
3939
if 'min_lcoe' not in atlas.wind.data.data_vars:
@@ -131,7 +131,7 @@ def annual_cost(df):
131131
cx.add_basemap(ax, crs=state.crs, source=cx.providers.BasemapAT.terrain, zoom=10)
132132
ax.set_axis_off()
133133
plt.tight_layout()
134-
plt.savefig(repo / f'figures/{filename}', dpi=200)
134+
plt.savefig(repo / f'figures/{filename}', dpi=300)
135135
plt.close()
136136

137137
logging.info('Maps of optimal wind turbine sites saved')
@@ -146,7 +146,7 @@ def annual_cost(df):
146146
ax.set_axisbelow(True)
147147
plt.legend(['Quasi-LCOE', 'Local Social Cost'], loc='upper left')
148148
plt.tight_layout()
149-
plt.savefig(repo / 'figures/cost_curve.png', dpi=200)
149+
plt.savefig(repo / 'figures/cost_curve.png', dpi=300)
150150
plt.close()
151151

152152
logging.info('Social cost curve saved')

0 commit comments

Comments
 (0)