Skip to content

Commit

Permalink
mpl get current figure added
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleySchuhl committed Dec 4, 2024
1 parent 7dd1d43 commit 2df4be0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plantcv/geospatial/analyze/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def coverage(img, bin_mask, geojson):
plt.title("Shapefile on GeoTIFF")
plt.xlabel("Longitude")
plt.ylabel("Latitude")
# Show the plot
plt.show()
_debug(visual=bounds.boundary.plot(),
# Store the plot
plotting_img = plt.gcf()

_debug(visual=plotting_img,
filename=os.path.join(params.debug_outdir, f"{params.device}_analyze_coverage.png"))
return plt.
return plotting_img

0 comments on commit 2df4be0

Please sign in to comment.