aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-14 23:28:04 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-14 23:28:04 -0400
commit775f26914f84faf78f78e486054f4c3bd4afe6c4 (patch)
treef52a4793e086dfd3dab351fc5db00096e97f268a
parent7b78946fa0f669ab4648b3174bce49b35cba2ec3 (diff)
downloadqolab-775f26914f84faf78f78e486054f4c3bd4afe6c4.tar.gz
qolab-775f26914f84faf78f78e486054f4c3bd4afe6c4.zip
changed background and foreground globally
-rw-r--r--eitControl.py3
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)