The figure below shows a graph from which the arrow is very small ...

I tried under the code, but it didn’t work ... he said: "Raise AttributeError (" Unknown property% s "% k) AttributeError: Unknown property headwidth" ...
xyfrom=[10,620]
xyto=[130,620]
ax.annotate("",xyfrom,xyto,arrowprops=dict(arrowstyle='<->',linewidth = 2, headwidth=10,color = 'k'
))
ax.text((xyto[0]+xyfrom[0])/2-15,(xyto[1]+xyfrom[1])/2+10,"headwidth is too small",fontsize=24)
source
share