cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix plots and image color rendering on Notebooks?

wschoi
New Contributor III

I am currently running dark mode for my Databricks Notebooks, and am using the "new UI" released a few days ago (May 2023) and the "New notebook editor."

Currently all plots (like matplotlib) are showing wrong colors.

For example, denoting:

```

...

plt.figure()

plt.axvline(x=0, color='red')

plt.axhline(y=0, color='red')

...

```

is resulting in teal colored axes. Images also seem to have their colors and hues mixed up.

Is there a way to fix this without giving up any of my current settings for the notebook environment?

17 REPLIES 17

AnneEst
Databricks Partner

Hello, any progress on that?
Displaying plotly express maps with dark mode displays them in dark mode, even after trying different things to either force white mode on my map (doesn't work), or set white mode for plotly at the top of my notebook (does not work either). 
I know I can switch to 'light mode' for each of my maps from a button (upper right corner on each map), but every time I rerun the notebook or the cell showing the map, it's back to dark mode... a bit annoying...

dbx_acbz
New Contributor II

Hi there! Is there any update on this issue?

griffen_kociela
Visitor

Still a problem when using Plotly visualizations.