Python 沿圆的弯曲箭头MATPLOTLIB

Python 沿圆的弯曲箭头MATPLOTLIB,python,matplotlib,Python,Matplotlib,我需要画一些弯曲的箭头,这些箭头应该位于一个圆上 我尝试了patches.FancyArrowPatch,但是我找不到一个能够跟随圆圈的连接样式 是否有任何连接方式可以用来获取所需形状的箭头 谢谢你的帮助 这是我尝试过的代码示例: from matplotlib import pyplot as plt, patches from math import pi, sin,cos fig,ax=plt.subplots() ax.set_xlim(-1.05,1.05) ax.set_ylim(

我需要画一些弯曲的箭头,这些箭头应该位于一个圆上

我尝试了patches.FancyArrowPatch,但是我找不到一个能够跟随圆圈的连接样式

是否有任何连接方式可以用来获取所需形状的箭头

谢谢你的帮助

这是我尝试过的代码示例:

from matplotlib import pyplot as plt, patches
from math import pi, sin,cos

fig,ax=plt.subplots()
ax.set_xlim(-1.05,1.05)
ax.set_ylim(-1.05,1.05)

# reference circle
circ=patches.Circle((0,0),radius=1.0,fill=False,lw=1, color='C0',zorder=10)
ax.add_patch(circ)

style="Simple,tail_width=0.5,head_width=3,head_length=6"
kw = dict(arrowstyle=style, color="C1")

ang1=pi/6
ang2=pi/3
rad=0.17
arc=patches.FancyArrowPatch((cos(ang1),sin(ang1)), (cos(ang2),sin(ang2)),connectionstyle="arc3,rad={}".format(rad),shrinkA=0,shrinkB=0,**kw)
ax.add_patch(arc)

ang1=pi/2
ang2=pi
rad=0.4
arc=patches.FancyArrowPatch((cos(ang1),sin(ang1)), (cos(ang2),sin(ang2)),connectionstyle="angle3, angleA=180, angleB=270",shrinkA=0,shrinkB=0,**kw)
ax.add_patch(arc)

ang1=5*pi/4
ang2=0
rad=0.7
arc=patches.FancyArrowPatch((cos(ang1),sin(ang1)), (cos(ang2),sin(ang2)),connectionstyle="arc3,rad={}".format(rad),shrinkA=0,shrinkB=0,**kw)
ax.add_patch(arc)
ax.axis('off')
ax.set_aspect('equal')
这就是结果:

专家建议这些圆弧是分段二次贝塞尔曲线。所以没有圆,这表明这些圆弧是分段二次贝塞尔曲线。所以没有圆圈。