diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-14 23:28:04 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-14 23:28:04 -0400 |
commit | 775f26914f84faf78f78e486054f4c3bd4afe6c4 (patch) | |
tree | f52a4793e086dfd3dab351fc5db00096e97f268a | |
parent | 7b78946fa0f669ab4648b3174bce49b35cba2ec3 (diff) | |
download | pyExpControl-775f26914f84faf78f78e486054f4c3bd4afe6c4.tar.gz pyExpControl-775f26914f84faf78f78e486054f4c3bd4afe6c4.zip |
changed background and foreground globally
-rw-r--r-- | eitControl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eitControl.py b/eitControl.py index 7dfc594..536cf37 100644 --- a/eitControl.py +++ b/eitControl.py @@ -73,7 +73,6 @@ class Experiment: self.dataPlot = pg.PlotWidget(name='Plot1') d2.addWidget(self.dataPlot) - self.dataPlot.setBackground(None) self.dataPlot.showGrid(x=True, y=True) self.dataPlot.addLegend() @@ -231,6 +230,8 @@ if __name__ == '__main__': args = parser.parse_args() app = QtGui.QApplication([]) + pg.setConfigOption('background', 'w') + pg.setConfigOption('foreground', 'k') mw = QtGui.QMainWindow() mw.setWindowTitle('pyqtgraph example: PlotWidget') mw.resize(800,800) |