Module pyspecan.controller.tkGUI.shared.pmf

Functions

def define_args(parser: argparse.ArgumentParser)
Expand source code
def define_args(parser: argparse.ArgumentParser):
    pass

Classes

class PMF (parent,
pane: Panel,
**kwargs)
Expand source code
class PMF(TimePlotController):
    def __init__(self, parent, pane: Panel, **kwargs):
        pane.master.config(text="PMF")
        self.pmf = ComplexPMF(256)
        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("pmf", fig.add_subplot())

        self.plotter.ax("pmf").ax.grid(True, alpha=0.2)

        self.update()

    def reset(self):
        self.pmf = ComplexPMF(256)

    def _plot(self, samps):
        self.pmf.update(samps)

        x = self.pmf.x
        y = self.pmf.y

        line_real = self.plotter.ax("pmf").plot(y.real, x.real, name="real")
        line_imag = self.plotter.ax("pmf").plot(y.imag, x.imag, name="imag")

        self.update()

    def draw_settings(self, row=0):
        pass

Controller for view.tkGUI time-domain plots

Ancestors

Methods

def reset(self)
Expand source code
def reset(self):
    self.pmf = ComplexPMF(256)

Reset plot view

Inherited members

class PlotConfig
Expand source code
class PlotConfig:
    pass