示例#1
0
文件: canvasT.py 项目: vpaeder/terapy
 def __init__(
     self,
     parent=None,
     id=-1,
     xlabel=AxisInfos("Delay", du["time"]),
     ylabel=AxisInfos("Signal", du["voltage"]),
     xscale="linear",
     yscale="linear",
 ):
     PlotCanvas1D.__init__(self, parent, id, xlabel, ylabel, xscale, yscale)
     self.Bind(wx.EVT_LEFT_DCLICK, self.OnLeftDblClick)
示例#2
0
文件: canvasF.py 项目: vpaeder/terapy
 def __init__(self, parent=None, id=-1, xlabel=AxisInfos("Frequency",du["frequency"]), ylabel=AxisInfos("Spectrum",du["voltage"]/du["frequency"]), xscale="linear", yscale="log"):
     """
     
         Initialization.
         Parameters:
             parent    -    parent window (wx.Window)
             id        -    id (int)
             xlabel    -    label and units of abscissa axis ([str,quantities])
             ylabel    -    label and units of ordinate axis ([str,quantities])
             xscale    -    abscissa scale type (linear or log)
             yscale    -    ordinate scale type (linear or log)
     
     """
     PlotCanvas1D.__init__(self,parent,id, xlabel, ylabel, xscale, yscale)
     self.bank = FilterBank()
     pub.subscribe(self.PostProcess, "filter.change")
     self.Bind(wx.EVT_WINDOW_DESTROY,self.OnDelete)