From 555831380d0cb1aac18d9a69ff1cb4f2980ca1f3 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Mon, 18 Dec 2023 17:46:32 +0100 Subject: [PATCH] replot legend if set is hidden --- src/gui_qt/graphs/graphwindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui_qt/graphs/graphwindow.py b/src/gui_qt/graphs/graphwindow.py index e38cb5f..a13d87b 100644 --- a/src/gui_qt/graphs/graphwindow.py +++ b/src/gui_qt/graphs/graphwindow.py @@ -304,6 +304,8 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): if item in self.graphic.items(): self.graphic.removeItem(item) + self.show_legend() + @QtCore.pyqtSlot(bool, name='on_imag_button_toggled') @QtCore.pyqtSlot(bool, name='on_real_button_toggled') def set_imag_visible(self, visible: bool):