SMByC / CCD-Plugin

The CCD-Plugin uses Google Earth Engine to get Landsat or Sentinel2 datasets and run the Continuous Change Detection (CCDC) algorithm to analyze the trends and breakpoints of change over multi-year time series at a given coordinate.
GNU General Public License v3.0
37 stars 4 forks source link

Plot download directory #2

Closed WangariKimotho closed 1 year ago

WangariKimotho commented 1 year ago

This plugin is very useful and I also love it's dynamic output using plotly. I would however also love to download the plots and choose the directory where they are saved myself. Currently I am getting a toast message saying saved as "newplot.png" but cannot locate where.

Using linux.

Thanks

XavierCLL commented 1 year ago

Hi @WangariKimotho,

I'm glad you like the plugin. Yes, I'm aware of that issue, that happens in any OS, there's a problem between QtWebView and Plotly, maybe a permission problem, but to be sincere, I have no idea how to fix it right now (or time to check it deeply), for now the only way it using a screenshot tool for that. Or the other idea that occurs to me is, every time the plugin creates a plot it saves the HTML (ploty) file in the temp directory (in linux /tmp, a random folder like /tmp/tmpv8l7t_ps/) and then opens the HTML in a web browser.

Xavier

WangariKimotho commented 1 year ago

I see, I actually changed the plot parameter from auto_open=False to auto_open=True, then saved the rendered html to a non-temporary location. works for now. Thanks

XavierCLL commented 1 year ago

Maybe a good idea is to add an icon to open the plot in an external web browser...

XavierCLL commented 1 year ago

Fixing this issue in the commit 42aa452bfd97f25845177aaa8eae27eb69fca34f in the develop branch with a button to open the plot in the web browser