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()