Ejemplo n.º 1
0
    def __init__(self, parent, title =QwtText()):

        QwtPlotItem.__init__(self)
        self.plot = parent
        self.display_type = "hippo"
        self.ValueAxis =  None
        self.ComplexColorMap = None
        self._flags_array = None
        self._nan_flags_array = None
        self._image_for_display = None
        self._display_flags = False
        self.Qimage = None
        self.r_cmax = None
        self.r_cmin = None
        self.i_cmax = None
        self.i_cmin = None
        self.raw_image = None
        self.dimap = None
        self.complex = False
        self.log_scale = False
        self.log_y_scale = False
        self.transform_offset = 0.0
        self.flag_colour = 0
        self.nan_colour = 255
        self.lock_image_real = False
        self.lock_image_imag = False
        self.setTitle(title)
Ejemplo n.º 2
0
 def __init__(self, *args):
     QwtPlotItem.__init__(self, *args)
     self.__attributes = HistogramItem.Auto
     self.__data = QwtIntervalSeriesData()
     self.__color = QColor()
     self.__reference = 0.0
     self.setItemAttribute(QwtPlotItem.AutoScale, True)
     self.setItemAttribute(QwtPlotItem.Legend, True)
     self.setZ(20.0)
Ejemplo n.º 3
0
 def __init__(self, masterAxis, slaveAxis):
     """Valid input values for masterAxis and slaveAxis are QwtPlot.yLeft,
     QwtPlot.yRight, QwtPlot.xBottom, and QwtPlot.xTop. When masterAxis is
     an x-axis, slaveAxis must be an y-axis; and vice versa."""
     QwtPlotItem.__init__(self)
     self.__axis = masterAxis
     if masterAxis in (QwtPlot.yLeft, QwtPlot.yRight):
         self.setAxes(slaveAxis, masterAxis)
     else:
         self.setAxes(masterAxis, slaveAxis)
     self.scaleDraw = QwtScaleDraw()
     self.scaleDraw.setAlignment((QwtScaleDraw.LeftScale,
                                  QwtScaleDraw.RightScale,
                                  QwtScaleDraw.BottomScale,
                                  QwtScaleDraw.TopScale)[masterAxis])
Ejemplo n.º 4
0
 def __init__(self, masterAxis, slaveAxis):
     """Valid input values for masterAxis and slaveAxis are QwtPlot.yLeft,
     QwtPlot.yRight, QwtPlot.xBottom, and QwtPlot.xTop. When masterAxis is
     an x-axis, slaveAxis must be an y-axis; and vice versa."""
     QwtPlotItem.__init__(self)
     self.__axis = masterAxis
     if masterAxis in (QwtPlot.yLeft, QwtPlot.yRight):
         self.setAxes(slaveAxis, masterAxis)
     else:
         self.setAxes(masterAxis, slaveAxis)
     self.scaleDraw = QwtScaleDraw()
     self.scaleDraw.setAlignment((QwtScaleDraw.LeftScale,
                                  QwtScaleDraw.RightScale,
                                  QwtScaleDraw.BottomScale,
                                  QwtScaleDraw.TopScale)[masterAxis])
Ejemplo n.º 5
0
 def updateLegend(self, legend):
     QwtPlotItem.updateLegend(self, legend)
     legend.find(self).setText(self.title())
Ejemplo n.º 6
0
 def __init__(self, title=QwtText()):
     QwtPlotItem.__init__(self)
     self.setTitle(title)
     self.setItemAttribute(QwtPlotItem.Legend)
     self.xyzs = None
Ejemplo n.º 7
0
 def __init__(self):
     QwtPlotItem.__init__(self)
     self.setZ(0.0)
Ejemplo n.º 8
0
 def updateLegend(self, legend):
     QwtPlotItem.updateLegend(self, legend)
     legend.find(self).setText(self.title())
Ejemplo n.º 9
0
 def __init__(self, title = QwtText()):
     QwtPlotItem.__init__(self)
     self.setTitle(title)
     self.setItemAttribute(QwtPlotItem.Legend);
     self.xyzs = None