mcuttler / CoastSat.islands

Satellite-derived shorelines and 2D planform measurements for islands, extension of the CoastSat toolbox.
GNU General Public License v3.0
22 stars 3 forks source link

get_reference_sl() throws an error #1

Closed Rejoicet closed 4 years ago

Rejoicet commented 4 years ago

While running _settings['reference_shoreline'] = SDS_preprocess.get_referencesl(metadata, settings) from the coastsat.islands code, it throws the below attribute error. AttributeError : 'FigureManagerBase' object has no attribut 'window'

I was able to fix the issue by adding matplotlib.use("Qt5Agg") under the function just before plotting the figure.

mcuttler commented 4 years ago

thanks for raising this @Rejoicet were you running the code through spyder? if so, I think this may be related to default graphics settings in spyder and one potential other fix is to go to tools>preferences>IPython console>graphics tab and set graphics backend to automatic

kvos commented 4 years ago

I also added that command matplotlib.use("Qt5Agg") at the start of the jupyter notebook in the main coastsat toolbox, probably good to add it also here

Rejoicet commented 4 years ago

thanks for raising this @Rejoicet were you running the code through spyder? if so, I think this may be related to default graphics settings in spyder and one potential other fix is to go to tools>preferences>IPython console>graphics tab and set graphics backend to automatic

Hi, I was running it on Jupyter. I will close this issue and thank you for this amazing tool!

8painkiller8 commented 10 months ago

I am running the code on Spyder and I am still facing the same issue, would you mind sharing your code that has the solution to the overflow error