From e40512ad77178f94f22595d062ecdd92fddcdd09 Mon Sep 17 00:00:00 2001 From: Akshar Sarvesh Date: Mon, 9 Sep 2024 11:47:37 -0700 Subject: [PATCH] FIX: autoVisible works with FCIs --- archive_viewer/table_models/curve_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archive_viewer/table_models/curve_model.py b/archive_viewer/table_models/curve_model.py index 20c5dd8..3a125ba 100644 --- a/archive_viewer/table_models/curve_model.py +++ b/archive_viewer/table_models/curve_model.py @@ -345,6 +345,7 @@ def replaceToFormula(self, index: QModelIndex, formula: str, color: Optional[str self._plot._curves[index.row()] = FormulaCurve FormulaCurve.formula_invalid_signal.connect(partial(self.invalidFormula, header = rowName)) # Need to check if Formula is referencing a dead row + self.plot.plotItem.unlinkDataFromAxis(curve) self.plot.removeItem(curve) # Disconnect everything and delete it, create a new Formula with the dictionary of curve [ch.disconnect() for ch in curve.channels() if ch]