I am plotting an arrow in matplotlib
using annotate
. I would like to make the arrow fatter. The effect I am after is a two-headed arrow with a thin edge line where I can control the arrow width i.e. not changing linewidth
. I have tried kwargs
such as width
after this answer but this caused an error, I have also tried different variations of arrowstyle
and connectorstyle
again without luck. I'm sure it's a simple one!
My code so far is:
import matplotlib.pyplot as plt
plt.figure(figsize=(5, 5))
plt.annotate('', xy=(.2, .2), xycoords='data',
xytext=(.8, .8), textcoords='data',
arrowprops=dict(arrowstyle='<|-|>',
facecolor='w',
edgecolor='k', lw=1))
plt.show()
I am using Python 2.7 and Matplotlib 1.5.1