Skip to content

Commit 42c4e11

Browse files
committed
Fix savefig call
1 parent 966e463 commit 42c4e11

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

workflow/scripts/area_potential.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import click
44
import geo
55
import geopandas as gpd
6+
import matplotlib.pyplot as plt
67
import xarray as xr
78
import yaml
89

@@ -96,8 +97,8 @@ def get_area_potential(
9697
potential_da = potential_da.transpose("band", "y", "x")
9798
potential_da.rio.to_raster(output_path, driver="GTiff", compress="LZW")
9899

99-
plot = potential_da.plot()
100-
plot.savefig(plot_path, bbox_inches="tight")
100+
potential_da.plot()
101+
plt.savefig(plot_path, bbox_inches="tight")
101102

102103

103104
if __name__ == "__main__":

0 commit comments

Comments
 (0)