Closed Alerovere closed 1 year ago
hey @Alerovere, thanks for checking out the CoastSat extension. It looks like it might be a small bug in how we were setting the legend location (lines 459-460 in SDS_islands.py).
can you try editing line 459-460 of SDS_islands.py to : ax2.legend(handles=[orange_patch,white_patch,blue_patch,
black_line], loc='lower right', fontsize=10)
Hey, thanks for the quick turnaround. I thought about this, and I had already tried. I get the same error with your code. See here.
ValueError Traceback (most recent call last)
Getting rid altogether of the "loc" keyword works fine.
great! i was just typing that as another suggestion
I will leave this issue open until we have modified the notebook and example .py script
hey @Alerovere, I think in the new version of matplotlib "bottom right" has been replaced with "lower right" and that's why it's throwing an error. @mcuttler the best solution here would be to change it to loc=4 so that it works with the new and older versions of matplotlib.
How can I run coassat library in Rstudio
Hi, I can run coastsat with no problems, but once I try to run the default example (jupyter notebook) on coastsat.islands, I run into the following error at the step "Batch contour detection".
Some details on my config: -I updated to Matplotlib 3.3.1, but the error persists. -I copied the coastsat.islands in my coastsat folder, and copied the "classification" folder into the coastsat.islands folder.
Maybe there is another way to "install" the island toolbox.
BTW, this is exceptional work, keep it up!
Error:
Mapping shorelines: S2: 8%
ValueError Traceback (most recent call last)