From 014c742e0ab31c6749f9291b3b44531edaf722ce Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Sat, 21 Dec 2024 13:11:06 -0700 Subject: [PATCH] smith too --- charon_vna/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charon_vna/gui.py b/charon_vna/gui.py index b04ab14..22f0b0f 100644 --- a/charon_vna/gui.py +++ b/charon_vna/gui.py @@ -146,6 +146,9 @@ class PlotWidget(QWidget): sel = data.sel(m=m, n=n) self.lines[ii] = self.ax.plot(sel.real, sel.imag)[0] + self.fig.canvas.draw() + self.fig.canvas.flush_events() + # Subclass QMainWindow to customize your application's main window class MainWindow(QMainWindow): @@ -217,7 +220,7 @@ class MainWindow(QMainWindow): plot_layout = QVBoxLayout() # TODO: handle plots properly self.plots = [] - for type_ in ["logmag", "phase", "vswr"]: + for type_ in ["logmag", "phase", "vswr", "smith"]: self.plots.append(PlotWidget(type_=type_)) plot_layout.addWidget(self.plots[-1]) plot_widget = QWidget()