smith too

This commit is contained in:
Brendan Haines 2024-12-21 13:11:06 -07:00
parent 6d920c6809
commit 014c742e0a

View File

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