jupyterlab-themes
jupyterlab-themes copied to clipboard
Improve plotting for most dark themes
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
):
And the better behavior (nord
):
literally just type in your import section:
from matplotlib import style
mpl.rcParams.update(mpl.rcParamsDefault)
it will make your plots look as such
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
@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.
plt.style.use("dark_background")
Maybe try this? there is also a context manager for it.