def __init__( self, parent, point_lists, clr_list, **kwargs ): self.parent = parent self.point_lists = point_lists self.clr_list = clr_list # initiate plotter PlotPanel.__init__( self, parent, **kwargs ) self.SetColor( (255,255,255) )
def __init__(self, parent, model, **kwargs): self.parent = parent self.m = model self.tvalues = [np.arange(450)] self.adcvalues = [2048+2048*np.sin(self.tvalues[0]*np.pi/100)] self.adctracemask = -1 self.xyminmax = 4*[None] # xmin xmax ymin ymax self.pedsubrequested = False self.plotmarkers = False PlotPanel.__init__(self, parent, **kwargs) self.SetColor((255,255,255)) self._doRedrawMethod = self.draw
def __init__(self, parent, scope, **kwargs): self.parent = parent self.scope = scope self.tscale = 1.0 self.autoscaledata = True self.scope.grabData() # just to get things started self._updateflag = False PlotPanel.__init__(self, parent, **kwargs) # scope will run on_scope_update any time that its update() method is called self.scope.addListener(self.on_scope_update) self.Bind(wx.EVT_IDLE, self._onIdle)
def __init__(self, parent, scope, **kwargs): self.parent = parent self.scope = scope self.tscale=1.0 self.autoscaledata = True self.scope.grabData() # just to get things started self._updateflag = False PlotPanel.__init__(self, parent, **kwargs) # scope will run on_scope_update any time that its update() method is called self.scope.addListener(self.on_scope_update) self.Bind(wx.EVT_IDLE, self._onIdle)
def __init__(self, parent, issmall, **kwargs): PlotPanel.__init__(self, parent, **kwargs) plot_diagrams.append(self) self.parent = parent self.subplot = None self.small_panel_index = None self.issmall = issmall self.artist = None self.selected = None if self.issmall: self.figure.canvas.mpl_connect("button_release_event", self) else: self.figure.canvas.mpl_connect("pick_event", self)
def __init__( self, parent, issmall, labels, **kwargs ): PlotPanel.__init__( self, parent, **kwargs ) self.parent = parent self.subplot = None self.small_panel_index = None self.issmall = issmall self.artist = None self.selected = None if self.issmall: self.figure.canvas.mpl_connect('button_release_event', self) else: self.figure.canvas.mpl_connect('pick_event', self) # if self.issmall: # self.smallxlabel = labels[0] # else: # self.xlabel, self.ylabel = labels self.labels = labels plot_diagrams.append(self)
def _onIdle(self, e): PlotPanel._onIdle(self, e) if self._updateflag: self._updateflag = False self.draw()