- diabled active stuff

- refactored update of widgets
- fixed dop update
- fixed data not processed if sat and dop info available at the same time
This commit is contained in:
2026-05-20 19:45:03 +02:00
parent f3a3f9b5a3
commit 3ecc550029
3 changed files with 7 additions and 23 deletions
+1 -16
View File
@@ -228,22 +228,7 @@ class SinglePlotPanel(QWidget):
h = self._history[key]
color = CURVE_PALETTE[idx % len(CURVE_PALETTE)]
active = h.get("active", True)
if active:
pen = pg.mkPen(color=color, width=1, style=Qt.SolidLine)
else:
# Inaktiver SV: gestrichelte Linie bei y=0
pen = pg.mkPen(color=color, width=1, style=Qt.DashLine)
x_data = h["x"] if h["x"] else [datetime.now().timestamp()]
y_data = [0.0] * len(x_data)
if key in self._curves:
self._curves[key].setData(x_data, y_data)
self._curves[key].setPen(pen)
else:
self._curves[key] = self._plot.plot(
x_data, y_data, pen=pen, name=f"{key} (weg)"
)
continue
pen = pg.mkPen(color=color, width=1, style=Qt.SolidLine)
if key not in self._curves:
self._curves[key] = self._plot.plot(