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
99 stars 15 forks source link

Non-transparent plot background #24

Open aazuspan opened 2 years ago

aazuspan commented 2 years ago

The switch from go.Figure to go.FigureWidget to include interactive buttons caused an unintended side effect of changing plot background color from transparent to white. This is caused by an inconsistency between the two classes (see https://github.com/plotly/plotly.py/issues/3811).

If there's not a workaround or fix, we may just have to live with an opaque background. I guess there are worse things.

aazuspan commented 1 year ago

If I can inject some CSS, this is fixable with:

.cell-output-ipywidget-background {
   background-color: transparent !important;
}

See https://github.com/microsoft/vscode-jupyter/issues/9403