aazuspan / sankee

Visualize classified time series data with interactive Sankey plots in Google Earth Engine
https://sankee.readthedocs.io/en/latest/index.html
MIT License
100 stars 15 forks source link

GUI #21

Closed aazuspan closed 2 years ago

aazuspan commented 2 years ago

Close #18 by returning a sankee.SankeyPlot from sankee.sankify and sankee.Dataset.sankify instead of the plotly.Figure. The SankeyPlot renders an ipywidgets.VBox that contains the plotly.Figure and buttons to interactively toggle classes on and off in the plot.

The plotly.Figure can still be accessed through the plot attribute of the SankeyPlot, and some backwards compatibility is maintained by a) allowing the SankeyPlot to be rendered directly as if it were a widget and b) wrapping the update_layout method.

The changes above required a major refactor, and most of the plotting functionality was simplified. The core module was renamed to plotting, and all of the Earth Engine sampling functionality was moved into a sampling module. An example_data module was also added.