def __init__(self,xs,ys,zs,*args,**kwargs): ''' arguments: xs: the x coordinates of both sides of the arrow ys: the y coordinates of both sides of the arrow zs: the z coordinates of both sides of the arrow ''' FancyArrowPatch.__init__(self,(0,0),(0,0),*args,**kwargs) self.verts = xs,ys,zs
def __init__(self, axis_artist, line_path, transform, line_mutation_scale): self._axis_artist = axis_artist self._line_transform = transform self._line_path = line_path self._line_mutation_scale = line_mutation_scale FancyArrowPatch.__init__(self, path=self._line_path, arrowstyle="->", arrow_transmuter=None, patchA=None, patchB=None, shrinkA=0., shrinkB=0., mutation_scale=line_mutation_scale, mutation_aspect=None, transform=IdentityTransform(), )
def __init__(self, base, xs, ys, zs, colors, *args, **kwargs): """ Init :Params xs: [[x0, x0+dx0], [x1, x1+dx1], ...] :Params ys: [[y0, y0+dy0], [y1, y1+dy1], ...] :Params zs: [[z0, z0+dz0], [z1, z1+dz1], ...] :Params colors: [[R0, G0, B0], [R1, G1, B1], ...] where R, G, B ranges (0,1) """ FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self.leftdown = False self.t_click = 0 self._verts3d = xs, ys, zs self.colors = colors self.base = base if base != None: # To turn the updating off during dragging base.canvas.mpl_connect('button_press_event', self.on_left_down) base.canvas.mpl_connect('button_release_event', self.on_left_up)
def __init__(self, xs, ys, zs, *args, **kwargs): """Create arrow.""" FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, xs, ys, *args, **kwargs): self._verts2d = xs, ys FancyArrowPatch.__init__(self, (xs[0], ys[0]), (xs[1], ys[1]), *args, **kwargs)
def __init__(self, row, *args, **kwargs): FancyArrowPatch.__init__(self, (0,0), (0,0), *args, **kwargs) self.center = row
def __init__(self, Acc_X, Acc_Y, Acc_Z, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self.set_position(Acc_X, Acc_Y, Acc_Z)
def __init__(self, pt1, pt2, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) x = [pt1[0, 0], pt2[0, 0]] y = [pt1[1, 0], pt2[1, 0]] z = [pt1[2, 0], pt2[2, 0]] self._verts3d = x, y, z
def __init__(self, xs, ys, zs, *args, **kwargs): kwargs.update(dict(mutation_scale=20, lw=1, arrowstyle='-|>')) FancyArrowPatch.__init__(self, (0,0), (0,0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, posA, posB, *args, **kwargs): FancyArrowPatch.__init__(self, posA, posB, *args, **kwargs)
def __init__(self, start, end, shrinkA=0.0, shrinkB=0.0, mutation_scale=20, arrowstyle="-|>", color='k', lw=1, *args, **kwargs): FancyArrowPatch.__init__(self, (0,0), (0,0), *args, shrinkA=shrinkA, shrinkB=shrinkB, mutation_scale=mutation_scale, arrowstyle=arrowstyle, color=color, lw=lw, **kwargs) self._verts3d = zip(start,end)
def __init__(self, xs, ys, zs, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = [] for x, y, z in zip(xs, ys, zs): self._verts3d.append([[0, x], [0, y], [0, z]])
def __init__(self, xs, ys, zs, *args, **kwargs): kwargs.update(dict(mutation_scale=20, lw=1, arrowstyle='-|>')) FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, xs, ys, zs, *args, **kwargs): """ Constructor. """ FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, xs, ys, zs, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, xs, ys, zs, *args, **kwargs): """Create arrow.""" FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, angleX, angleY, angleZ, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self.set_verts3d(angleX, angleY, angleZ)
def __init__(self, xs, ys, zs, *args, **kwargs): arrow_prop_dict = dict(mutation_scale=20, arrowstyle='-|>', color='k', shrinkA=0, shrinkB=0) # default parameters for key in kwargs : arrow_prop_dict[key] = kwargs[key] # overwrite the default values if there is a conflict FancyArrowPatch.__init__(self, (0,0), (0,0), *args, **arrow_prop_dict) self._verts3d = xs, ys, zs
def __init__(self,x,y,*args,**kwargs): prop = dict(self.prop) prop.update(kwargs) FancyArrowPatch.__init__(self,(0,0),(0,0),*args,**prop) self._verts = x,y
def __init__(self, xs, ys, zs, *args, **kwargs): FancyArrowPatch.__init__(self, (0,0), (0,0), *args, **kwargs) self._verts3d = xs, ys, zs
def __init__(self, xs, ys, zs, *args, **kwargs): FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) # 这里 (0, 0) 只表示弃用 2d 作 Arrow 的方法 self._verts3d = xs, ys, zs