-
Notifications
You must be signed in to change notification settings - Fork 271
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
Matplotlib plot cannot ignore Vscode theme in Python Interactive Window and button images not changed on theme swaps. #2961
Comments
Hmm. Yeah looks like we aren't checking ignore during load of the jupyter server. |
I also have the same problem. Is there a temporary fix for now? |
Yes, you can force the matplot lib to use the white theme. Either run a cell with this code in it:
or put that code into this setting:
_VSCode_defaultMatplotlib_Params is a hidden variable we create on startup with the default params for matplotlib. Since it defaults to the white background, setting the matplotlib params to this value will reset the plots. |
Looks like the icons might be off in this situation as well. At least to me it looks like dark theme icons were being used on the light non-themed control. Yeah, there is a larger issue at play. Icons / buttons also don't swap on theme changes light / dark. |
Validation notes please check that on a swap from light to dark theme that images in the native editor and the interactive window change to correctly match the new theme. This was not working previously. |
Second validation note (noticed more theme issues while testing) change the plot viewer to respect the new "themeMatplotlibPlots" setting. |
Validated except for selection rectangle around the plots |
Validation fixes here: |
Bug: Notebook Editor, Interactive Window, Python Editor cells
Steps to cause the bug to occur
Actual & Expected behavior
The figure is expected to ignore the dark theme and has white background.
But the actual background color is black in the latest version 2019.10.41019. No issue in version 2019.9.34911.
Your Jupyter and/or Python environment
Please provide as much info as you readily know
Developer Tools Console Output
The text was updated successfully, but these errors were encountered: