Ejemplo n.º 1
0
 def __init__(self, calc, vaxis_format="%s", ndatasets=1, scale_unit=True, auto_scale_vaxis=True):
     Figure.__init__(self)
     
     self.calc = calc
     
     self._vaxis_format = vaxis_format
     
     self._ndatasets = ndatasets
     self._points = [[] for i in range(ndatasets)]
     
     self._width = 160
     self._height = 120
     
     self._vertical_dividers = 4
     self._auto_scale_vaxis = auto_scale_vaxis
     self._scale = 100
     
     self._scale_unit = scale_unit
     
     self._detail_line_pos = None
     
     # how many seconds each pixel represents
     self._seconds_per_hpixel = 1
 
     self._colors = [(0, 0, 0) for i in range(ndatasets)]
Ejemplo n.º 2
0
    def __init__(self,
                 calc,
                 vaxis_format="%s",
                 ndatasets=1,
                 scale_unit=True,
                 auto_scale_vaxis=True):
        Figure.__init__(self)

        self.calc = calc

        self._vaxis_format = vaxis_format

        self._ndatasets = ndatasets
        self._points = [[] for i in range(ndatasets)]

        self._width = 160
        self._height = 120

        self._vertical_dividers = 4
        self._auto_scale_vaxis = auto_scale_vaxis
        self._scale = 100

        self._scale_unit = scale_unit

        self._detail_line_pos = None

        # how many seconds each pixel represents
        self._seconds_per_hpixel = 1

        self._colors = [(0, 0, 0) for i in range(ndatasets)]
Ejemplo n.º 3
0
 def __init__(self, calc, label1, label2):
     Figure.__init__(self)
     self.calc = calc
     self._label1 = label1
     self._label2 = label2
     self._value1 = 0
     self._value2 = 0
     self.set_usize(150, 56)
Ejemplo n.º 4
0
 def __init__(self, calc, label1, label2):
     Figure.__init__(self)
     self.calc = calc
     self._label1 = label1
     self._label2 = label2
     self._value1 = 0
     self._value2 = 0
     self.set_usize(150, 56)
Ejemplo n.º 5
0
    def __init__(self, calc):
        Figure.__init__(self)
        self.calc = calc

        self._max_value = 100
        self._max_seen_value = 0
        self._value = 0

        self.set_usize(100, 100)
Ejemplo n.º 6
0
    def __init__(self, calc):
        Figure.__init__(self)
        self.calc = calc


        self._max_value = 100
        self._max_seen_value = 0
        self._value = 0
        
        self.set_usize(100, 100)
Ejemplo n.º 7
0
    def __init__(self, dummy, height):
        Figure.__init__(self)

        self._height = height
Ejemplo n.º 8
0
    def mouse_move(self, x, y):
        Figure.mouse_move(self, x, y)

        if self._detail_line_pos != x - self.x:
            self._detail_line_pos = x - self.x
            self.invalidate(repaint_only=True)
Ejemplo n.º 9
0
 def hover_out(self, x, y):
     Figure.hover_out(self, x, y)
     self._detail_line_pos = None
Ejemplo n.º 10
0
 def __init__(self, dummy, height):
     Figure.__init__(self)
 
     self._height = height
Ejemplo n.º 11
0
    def mouse_move(self, x, y):
        Figure.mouse_move(self, x, y)

        if self._detail_line_pos != x - self.x:
            self._detail_line_pos = x - self.x
            self.invalidate(repaint_only=True)
Ejemplo n.º 12
0
 def hover_out(self, x, y):
     Figure.hover_out(self, x, y)
     self._detail_line_pos = None