simicd/jupyterlab-tailwind-theme

Axes labels are dark in Matplotlib plots in Tailwind-dark

Closed this issue · 4 comments

nprav commented

In JupyterLab with the Tailwind dark theme, when plotting matplotlib plots, the axes labels remain black. See comparisons between tailwind-dark and jupyterlab-dark below for eg.

I am using JupyterLab 2.1.4.

Great job on the theme!

image
image

Hi @nprav, thanks for the feedback and for reporting the issue! I looked into it and was able to replicate it. As proposed, I added white background as default so the axis becomes visible. I tried to make the axis color brighter but wasn't successful since this is controlled in Python code and not through css styles.

If you are ok with the proposal I'll deploy it:

image

On another note: Matplotlib also has a dark theme I figured out. By adding plt.style.use('dark_background') one can turn any chart into a dark mode compatible chart:

image

nprav commented

I was not aware of the 'dark_background' option. I will certainly try it out. Your proposal looks great. Thanks!

@nprav Awesome, just published v0.4.2 on npm so it can be installed now - cheers!