From 775f26914f84faf78f78e486054f4c3bd4afe6c4 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 14 Jun 2021 23:28:04 -0400 Subject: changed background and foreground globally --- eitControl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eitControl.py') 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) -- cgit v1.2.3