You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Positron's dark themes don't extend to the Plots pane, because plots are images generated from matplotlib, ggplot, etc. Consequently it's not unusual to see a bright white plot in an otherwise dark-themed Positron. It is possible to set the plotting libraries to generate dark-themed plots, but this usually requires some level of effort and skill with the individual plotting library.
When preparing plots for publication, you probably want them to have their true colors, but for exploratory data analysis, the plots could Just Look Nice in Positron with some judicious use of CSS color filters.
Quick little airplane feature to make plots in Positron's Plots pane
(and editors) automatically turn dark in dark themes. It's intended for
exploratory data analysis, wherein you're not preparing plots for
publication but just using them as a visualization tool.
https://github.com/user-attachments/assets/19d49c58-2c26-411a-b0c4-8c440b17d2cf
Because I expect that this feature will be somewhat polarizing, it is
controlled by a explicit configuration setting rather than an implicitly
saved preference. You can turn it off at user level, workspace level,
etc. in Settings.
<img width="473" alt="image"
src="https://github.com/user-attachments/assets/cc8b1775-0537-49ae-a36d-192321321570"
/>
Addresses #6255.
### Release Notes
#### New Features
- Optionally apply a color filter to plots in dark mode for automatic
theming (#6255)
#### Bug Fixes
- N/A
### QA Notes
It is possible to change the dark filter mode right on the Plots pane by
clicking the color mode drop down. Note however that this only changes
it temporarily! If you want the change to stick (across reloads, etc.)
you need to do that in Settings. Changing the value in Settings should
cause the UI to react appropriately.
I briefly considered having the dropdown update the setting for you but
there's really too much guessing there (did you mean to turn it off for
all projects? just this one? etc.)
Test tags: `@:plots`
Positron's dark themes don't extend to the Plots pane, because plots are images generated from matplotlib, ggplot, etc. Consequently it's not unusual to see a bright white plot in an otherwise dark-themed Positron. It is possible to set the plotting libraries to generate dark-themed plots, but this usually requires some level of effort and skill with the individual plotting library.
When preparing plots for publication, you probably want them to have their true colors, but for exploratory data analysis, the plots could Just Look Nice in Positron with some judicious use of CSS color filters.
(From a conversation with @cscheid at Work Week)
The text was updated successfully, but these errors were encountered: