Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | from pyqtgraph.Qt import QtGui, QtCore | 2 | from PyQt6 import QtWidgets |
| 3 | import pyqtgraph as pg | 3 | import pyqtgraph as pg |
| 4 | import sys | 4 | import sys |
| 5 | import re | 5 | import re |
| @@ -135,9 +135,9 @@ for e, index in zip(G.sevents, range(len(G.sevents))): · 129 unmodified lines | |||
| 135 | 135 | ||
| 136 | pg.setConfigOption('background', 'w') | 136 | pg.setConfigOption('background', 'w') |
| 137 | pg.setConfigOption('foreground', 'k') | 137 | pg.setConfigOption('foreground', 'k') |
| 138 | app = QtGui.QApplication([]) | 138 | app = QtWidgets.QApplication([]) |
| 139 | win = pg.GraphicsWindow() | 139 | win = pg.GraphicsLayoutWidget() |
| 140 | #win.resize(1500, 900) | 140 | win.show() |
| 141 | 141 | ||
| 142 | ax = [None, None] | 142 | ax = [None, None] |
| 143 | plots = 2 if hasval else 1 | 143 | plots = 2 if hasval else 1 |
| @@ -163,4 +163,4 @@ for e in G.sevents: · 19 unmodified lines | |||
| 163 | G.curveno[cur] += 1 | 163 | G.curveno[cur] += 1 |
| 164 | n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args) | 164 | n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args) |
| 165 | 165 | ||
| 166 | QtGui.QApplication.instance().exec_() | 166 | app.exec() |