-
Notifications
You must be signed in to change notification settings - Fork 14
Use light background in plots? #56
Comments
In the above screenshot, it is evident that the current choice of the curve colors is more appropriate for a light background than a dark one. Here is another screenshot where I manually changed curve colors for better contrast (changing the default palette of curve colors is something we definitely should do if we keep the dark background). |
Note that since v0.4.0, the background color for each plot can be set via plot config dialog and it is (re)stored via config properties. |
Great news! IMO it is the best possible option to let the user to choose. Many thanks! |
No, this is a related, but independent setting at widget level. IMHO, using a global switch (and adapting the curve color palette accordingly) is still something we should consider |
Intro
Pyqtgraph's choice of a dark background for plots has generated mixed reactions among taurus users.
Changing it to a light background has been a common request, but the decision has always been postponed because of lack of time and its not-so-obvious implications.
But it may be good to do some discussion about it now in order to take decision.
Note: pyqtgraph plot widgets allow calling
.setBackgroundBrush()
individually, but pyqtgraph as a whole provides a global switch mechanism.Arguments for each option
Apart of purely aesthetic preferences (there is people who prefers dark themes and others who prefer light ones), here are some arguments for each option:
Arguments in favor of changing background to a light color:
Arguments in favor of keeping the original dark background :
Configurability
Whichever the decision, should we provide a simple "switch" mechanism?
And if so, which scope should this mechanism act onto (a global configuration, at the widget / tool level, ...)?
And should the mechanism be used implicitly (e.g. set the colors when importing
taurus_pyqtgraph
) or explicitly (e.g. a function that you need to call in all your guis).Note that an implicit and global change may seem convenient but will probably upset GUIs which mix pure pyqtgraph widgets with taurus_pyqtgraph ones.
The text was updated successfully, but these errors were encountered: