def __init__(self, plot, label, color="green", mode=QwtPicker.PointSelection, rubber_band=QwtPicker.VLineRubberBand, tracker_mode=QwtPicker.ActiveOnly, track=None): QwtPlotPicker.__init__(self, QwtPlot.xBottom, QwtPlot.yRight, mode, rubber_band, tracker_mode, plot.canvas()) self.plot = plot self.label = label self.track = track self.color = QColor(color) self.setRubberBandPen(QPen(self.color))
def __init__(self, canvas): QwtPlotPicker.__init__( self, xBottom, yRight, self.NoSelection, self.CrossRubberBand, self.AlwaysOn, canvas)
def __init__(self, canvas): QwtPlotPicker.__init__(self, xBottom, yRight, self.NoSelection, self.CrossRubberBand, self.AlwaysOn, canvas)