Module pyspecan.controller.tkGUI.shared.phasor
Functions
-
Expand source code
def define_args(parser: argparse.ArgumentParser): pass
Classes
-
Expand source code
class Phasor(TimePlotController): def __init__(self, parent, pane: Panel, **kwargs): pane.master.config(text="Phasor") super().__init__(parent, pane, **kwargs) fig = plt.figure(figsize=(5,5), layout="constrained") fig.canvas = FigureCanvasTkAgg(fig, master=self.fr_canv) self.plotter = BlitPlot(fig) # type: ignore self.plotter.canvas.draw() self.plotter.canvas.get_tk_widget().pack(side=tk.LEFT, fill=tk.BOTH, expand=True) # type: ignore self.plotter.add_ax("iq", fig.add_subplot()) self.plotter.ax("iq").ax.set_autoscale_on(False) self.plotter.ax("iq").ax.grid(True, alpha=0.2) self.plotter.ax("iq").set_xlim(-1, 1) self.plotter.ax("iq").set_ylim(-1, 1) self.plotter.ax("iq").ax.set_box_aspect(1) self.update() def reset(self): self.y_max = 0 def _plot(self, samps): s_max = np.max((samps.real, samps.imag)) self.pane.master.config(text=f"Phasor (norm {s_max:03.2f})") samps = samps / s_max self.plotter.ax("iq").scatter( samps.real, samps.imag, name="iq", linestyle=None, marker=".", linewidth=0, ) self.update() def draw_settings(self, row=0): passController for view.tkGUI time-domain plots
Ancestors
- TimePlotController
- pyspecan.controller.tkGUI.plot_base._PlotController
Methods
-
Expand source code
def reset(self): self.y_max = 0Reset plot view
Inherited members
-
Expand source code
class PlotConfig: pass