-
Notifications
You must be signed in to change notification settings - Fork 224
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
How to handle labels when using dark theme with jupyterlabs? #25
Comments
You can use a style sheet, but it looks like styles don't affect plot titles, so those have to be set manually: %matplotlib ipympl
import matplotlib.pyplot as plt
plt.style.use(['dark_background'])
plt.plot([0,1,12])
plt.suptitle('figure title', color='w') |
Closing since the jlab theme cannot set the matplotlib style. However, in master, the toolbar now uses the JupyterLab CSS variables. |
I found one solution for expanding the plot canvas a bit so that x and y ticks will get visible. You need to add one line See my ticks are outside the canvas before. After adding the line the tick got added to the canvas itself no further modification was needed. As you can see in the above image this will pull the x and y ticks in the canvas to make it visible without changing or modifying ticks or plot color, it will make it easier to collaborate your work with others. |
Hello I am using JupyterLabs and it works great, but a problem I have is when I generate matplot plots() I can't see the text as I use JupyterLabs in dark theme mode, but it seems that the plots are made with black text and transparent background so I can't see labels, etc. Is there a way to override text color?
The text was updated successfully, but these errors were encountered: