Hello,

the original problem that I have is to add an arrow to the end of a
plotted line. I tried this

from pylab import *
x=linspace(0, 1.85, 100)
y=sin(x)

dx=x[-1] - x[-2]
dy=y[-1] - y[-2]
plot(x,y,lw=2)
arrow(x[-2], y[-2], dx, dy,
    width=.02,
    length_includes_head=True,
    head_length=sqrt(dx**2+dy**2),
    lw=0, overhang=.1)

But this is ugly. And when I zoom in the arrowsize isnt scaled with the
linewidth.

Any idea instead to switch to the pyx package?

By,

  Friedrich

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to