smith too
This commit is contained in:
parent
6d920c6809
commit
014c742e0a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user