def legend_artist(self, legend, orig_handle, fontsize, handlebox):
c = orig_handle
x0, y0 = handlebox.xdescent, handlebox.ydescent
x1, y1 = handlebox.width, handlebox.height
x = (x0+x1)/2.
y = (y0+y1)/2.
r = min((x1-x0)/2., (y1-y0)/2.)
patch = mpatches.Circle((x, y), 2.*r, facecolor=c,
alpha=0.5, lw=0,
transform=handlebox.get_transform())
point = mpatches.Circle((x, y), r/2., facecolor=c,
alpha=1.0, lw=0,
transform=handlebox.get_transform())
handlebox.add_artist(patch)
handlebox.add_artist(point)
return patch,point
# Parse input
#Get number of euler rotations
评论列表
文章目录