Finding where an annotation line ends

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Finding where an annotation line ends

Adrian Jacobo

Hi,

 I'm using an annotation for a plot in this way:

                ax.annotate("", xy=(x1,y1), xycoords='data',
                            xytext=(x2,y2), textcoords='data',
                            arrowprops=dict(arrowstyle='-', patchB=None,
                                            shrinkA=25),)

Because I'm setting shrinkA to 25 pixels the line doesn't exactly end at (x2,y2). Is there an easy way to find out the end point of the line in axis coordinates?
An unrelated question, Is there an easy way to use a stump (a circle) as arrowstyle?


Many thanks,
Adrian





_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users