Exemplo n.º 1
0
    def __init__(self, parent, x, y, dir):
        # somehow the original "self" rectangle does not show up in the current matplotlib version, therefore this doubling
        self.rect = Rectangle((0, 0),
                              self.d,
                              self.d,
                              figure=parent.figure,
                              edgecolor="k",
                              facecolor="r",
                              zorder=1000,
                              label="grabber")
        self.rect._no_save = True
        parent.figure.patches.append(self.rect)

        Rectangle.__init__(self, (0, 0),
                           self.d,
                           self.d,
                           picker=True,
                           figure=parent.figure,
                           edgecolor="k",
                           facecolor="r",
                           zorder=1000,
                           label="grabber")
        GrabberGeneric.__init__(self, parent, x, y, dir)
        self.figure.patches.append(self)
        self.updatePos()
Exemplo n.º 2
0
 def __init__(self, x, y, width, height, color, index):
     Rectangle.__init__(self, (x, y),
                        width,
                        height,
                        fill=True,
                        alpha=0.4,
                        color=color,
                        picker=True)
     self.next = None
     self.index = index
 def __init__(self, tgi, node, time, type, msg, fullmsg, fulltime):
     Rectangle.__init__(self,
             xy= (time + tgi.type_to_offset[type][0], \
                   node + tgi.type_to_offset[type][1]) , \
                   width=.5, height=.1, \
                   fc=tgi.type_to_color[type][0], \
                   ec=tgi.type_to_color[type][0], \
                   linewidth=0.0)
     self.fulltime = fulltime
     self.msg = msg
     self.fullmsg  = fullmsg
Exemplo n.º 4
0
 def __init__(self, key=None, xy=None, width=None, height=None, fill=False):
     Rectangle.__init__(self, xy, width, height, fill)
     self.id = key
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     Rectangle.__init__(self, *args, **kwargs)
Exemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     Rectangle.__init__(self, *args, **kwargs)
Exemplo n.º 7
0
 def __init__(self, xy, width, height, angle=0.0, **kwargs):
     Rectangle.__init__(self, xy, width, height, angle=0.0, **kwargs)