Ejemplo n.º 1
0
    def __init__(self,
                 size         = (128,128),
                 channels     = [],
                 pollInterval = 10,
                 bgColor      = None,
                 gridColor    = None,
                 ):
        StaticGridGraph.__init__(self, size, channels, pollInterval,
                                 bgColor, gridColor)

        # by default, draw grids at two radii and 8 angles
        self.radiusGrids = (0.25, 0.5, 0.75, 1)
        self.angleGrids = [i*math.pi*2/8 for i in range(8)]
Ejemplo n.º 2
0
    def __init__(self,
                 size         = (384,384),
                 channels     = [],
                 pollInterval = 10,
                 bgColor      = None,
                 gridColor    = None,
                 ):
        StaticGridGraph.__init__(self, size, channels, pollInterval,
                                 bgColor, gridColor)

        # Default axis vectors
        self.axes = [(1, 0.6),
                     (-1, 0.6),
                     (0, -1)]

        # Make unit vectors orthogonal to each axis
        self.axisUnitOrthos = [normalize(orthogonal(b)) for b in self.axes]

        self.numTickMarks = 10