Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 def __init__(self, canvas):
     QwtPlotPicker.__init__(
         self, xBottom, yRight, self.NoSelection, self.CrossRubberBand,
         self.AlwaysOn, canvas)
Exemplo n.º 3
0
 def __init__(self, canvas):
     QwtPlotPicker.__init__(self, xBottom, yRight, self.NoSelection,
                            self.CrossRubberBand, self.AlwaysOn, canvas)