- 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:
+1
-16
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user