Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-29 Thread Jae-Joon Lee
On Mon, Nov 28, 2011 at 10:49 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: This is a bug. In the current implementation, annotate has a side-effect that modifies the arrowprops dictionary. For a future reference, this should now be fixed in the v1.1.x branch which also has been merged into the

[Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Markus Baden
Hi list, I'm trying to annotate points on a graph by drawing a simple line from the point on the axis to the top left corner of the text. I can't figure out, how to use pyplot.annotate so that it turns of the arrow head and I can use horizontalalignment (ha) and verticalalignment (va). When I use

Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Jae-Joon Lee
On Mon, Nov 28, 2011 at 9:39 PM, Markus Baden markus.ba...@gmail.com wrote: anno_args = {     'annotation_clip': False,     'arrowprops': dict(arrowstyle='-', relpos=(0, 1)),     } plt.annotate('Good relpos', (3, 3), xytext = (3, 2), **anno_args) plt.annotate('Bad relpos', (6, 6), xytext =

Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-28 Thread Markus Baden
This is a bug. In the current implementation, annotate has a side-effect that modifies the arrowprops dictionary. As a workaround, you may do, arrowprops = dict(arrowstyle='-', relpos=(0, 1)) plt.annotate('Good relpos', (3, 3), xytext = (3, 2), annotation_clip=False,