-
Notifications
You must be signed in to change notification settings - Fork 325
White background on graphs #2904
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
Comments
Did you change your theme after already running a cell? This should change the theming for the plots automatically. Unless of course you're changing the matplotlib theme yourself. |
Hey gabriel19913. So with matplotlib you can set default styles with the style customization like so. Past that we also have a Ignore Vscode Theme setting, but that makes the entire window default light themed, so that doesn't sound like the option that you want. |
It should be noted, after changing your theme, you currently need to restart the server (or close the notebook) and rerun the cell to get plots to show up correctly. Meaning we will render them with a dark background as Ian describes, but only after rerendering. We don't reformat the existing output to be dark. |
thanks for the advices @rchiodo and @IanMatthewHuff, I don't know what I am doing wrong, but this doesn't seem to work for me. |
We need to add a setting to allow the user to decide whether we honor the theme for graphs. By default they should always render to a white background and not apply matplotlib themes. |
Feature: Notebook Editor, Interactive Window, Python Editor cells
Description
Is there a way to implement white backgound in the plots even when using dark theme like in Jupyter Lab? When I am using a dark theme on vscode I cannot see what is in the graph's axis.
Example:
Jupyter Lab: https://i.ibb.co/bNXZwhy/1-jupyter.png
VsCode: https://i.ibb.co/bHQW506/2-jupyter.png
The text was updated successfully, but these errors were encountered: