Troels Kofoed Jacobsen’s blog


More on arrows in matplotlib
February 26, 2009, 12:08 pm
Filed under: matplotlib | Tags: , ,

There still doesn’t seem to be an easy way to do this, but at least there is a way now. With the introduction of matplotlib.patches.FancyArrowPatch it is now possible to draw a decent arrow like this:

from matplotlib.patches import FancyArrowPatch
ax=gca()
ax.add_patch(FancyArrowPatch((9,0),(9,0.5),arrowstyle='->',mutation_scale=30))