Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font blending with the dark background in dask-labextension tabs #11

Open
Vonatzki opened this issue Jul 30, 2019 · 2 comments
Open

Font blending with the dark background in dask-labextension tabs #11

Vonatzki opened this issue Jul 30, 2019 · 2 comments

Comments

@Vonatzki
Copy link

Vonatzki commented Jul 30, 2019

Using this extension alongside dask-labextension will produce fonts in the dask tabs that blends in the dark background, as shown:

image

image

@Vonatzki Vonatzki changed the title Compatibility with dask-labextension Font blending with the dark background in dask-labextension tabs Jul 30, 2019
@joshdgreen77
Copy link

I am getting the same problem for my Seaborn plots as well.
Screen Shot 2019-12-03 at 10 13 41 AM

@oriolmirosa
Copy link
Owner

oriolmirosa commented Dec 3, 2019

I don't use the Dask extension so I'm not sure what the issue is, but as far as seaborn or matplotlib, I don't think the issue is with the theme, but with the seaborn/matplotlib defaults. You have two alternatives:

  1. Use a dark theme for matplotlib by adding this at the top of your notebook:
    plt.style.use('dark_background')

I'm not a big fan of the results, and since I don't have the desire to create a matplotlib theme myself, I use the second option:

  1. Change the facecolor of the matplotlib graphs to white. Again, you can put this at the top of the notebook (if you changed your theme to 'dark_background', you'll have to bring it back to 'default'):
    plt.rcParams['figure.facecolor'] = 'white'

Now the graphs are the same as they would be in a light theme, but the area underneath the labels outside of the axes will be white and the labels will be visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants