Skip to content

Commit

Permalink
set plot resolution to 300 dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
sebwehrle committed Jul 15, 2024
1 parent cf29273 commit 04c9480
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions 03_postprocess_wtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
axs.set_title("")
axs.axis('off')
plt.tight_layout()
plt.savefig(figures_dir / f'map_soco_{data_ver}.png', dpi=200)
plt.savefig(figures_dir / f'map_soco_{data_ver}.png', dpi=300)
plt.close()

fig, axs = plt.subplots(figsize=(7, 5))
Expand All @@ -84,7 +84,7 @@
axs.set_title("")
axs.axis('off')
plt.tight_layout()
plt.savefig(figures_dir / f'map_lcoe_{data_ver}.png', dpi=200)
plt.savefig(figures_dir / f'map_lcoe_{data_ver}.png', dpi=300)
plt.close()

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

logging.info('Cost distributions plotted')
Expand Down Expand Up @@ -157,6 +157,6 @@
fig.delaxes(axes[j])
# Adjust layout
plt.tight_layout()
plt.savefig(atlas.path / f'figures/soco_facet{sens_name}.png', dpi=200)
plt.savefig(atlas.path / f'figures/soco_facet{sens_name}.png', dpi=300)
plt.close()
logging.info("Facet of social cost variables plotted")
2 changes: 1 addition & 1 deletion 04_optimal_siting.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"Vestas.V100.1800", "Vestas.V100.2000", "Vestas.V112.3075"
]
if 'capacity_factors' not in atlas.wind.data.data_vars:
atlas.wind.simulate_capacity_factors(bias_correction=0.71197) # 0.71197
atlas.wind.simulate_capacity_factors(bias_correction=0.71197)
if 'lcoe' not in atlas.wind.data.data_vars:
atlas.wind.compute_lcoe(turbine_cost_share=0.7)
if 'min_lcoe' not in atlas.wind.data.data_vars:
Expand Down
6 changes: 3 additions & 3 deletions 05_postprocess_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"Vestas.V100.1800", "Vestas.V100.2000", "Vestas.V112.3075"
]
if 'capacity_factors' not in atlas.wind.data.data_vars:
atlas.wind.simulate_capacity_factors(bias_correction=0.71197) # 0.71197
atlas.wind.simulate_capacity_factors(bias_correction=0.71197)
if 'lcoe' not in atlas.wind.data.data_vars:
atlas.wind.compute_lcoe(turbine_cost_share=0.7)
if 'min_lcoe' not in atlas.wind.data.data_vars:
Expand Down Expand Up @@ -131,7 +131,7 @@ def annual_cost(df):
cx.add_basemap(ax, crs=state.crs, source=cx.providers.BasemapAT.terrain, zoom=10)
ax.set_axis_off()
plt.tight_layout()
plt.savefig(repo / f'figures/{filename}', dpi=200)
plt.savefig(repo / f'figures/{filename}', dpi=300)
plt.close()

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

logging.info('Social cost curve saved')

0 comments on commit 04c9480

Please sign in to comment.