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

Improve plotting for most dark themes #8

Open
arbennett opened this issue May 15, 2020 · 3 comments
Open

Improve plotting for most dark themes #8

arbennett opened this issue May 15, 2020 · 3 comments

Comments

@arbennett
Copy link
Owner

Currently light themes work well with plotting because axis text is legible. For most of these themes it seems that the plot background is not getting changed to something lighter. An example of a bad scheme (gruvbox-dark):

image

And the better behavior (nord):

image

@dnzckn
Copy link

dnzckn commented Jul 20, 2020

literally just type in your import section:
from matplotlib import style

mpl.rcParams.update(mpl.rcParamsDefault)

it will make your plots look as such
example

i think trying to bother with changing the plot axis label colors and backgrounds is maybe too much of a headache to solve for every color theme.

Plus most plots end up landing in powerpoint and you dont want to carry your rad theme over to a wider audience usually, so white bg, and black text is typically universal

@b4rlw
Copy link

b4rlw commented Jan 22, 2021

@arbennett I second the suggestion by @Deniz93. These themes are highly glorious in JupyterLab, but not so suitable if they carry over to reports, etc.

Though for me

import matplotlib as mpl
from matplotlib import style
mpl.rcParams.update(mpl.rcParamsDefault)

seems to override figsize choice when plt.show() is called.

@s-rog
Copy link

s-rog commented Jan 29, 2021

plt.style.use("dark_background")
Maybe try this? there is also a context manager for it.

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

4 participants