Drawing trajectories

Hi,

I need to draw a sequence of arrows denoting a path. There is the quiver
function which draws vector fields (and, btw, behaves differently from the
examples on the web), so this is not an option. Additionally, there is the
Arrow class. But it is very slow and, what's more important, draws distortet
arrows at some angles. Am I missing something, or are these two possibilities
the only options?

Thanks,
wr

As far as I know these are the only two options at the moment. If you
are happy patching the matplotlib source then you could use this patch I
wrote a while ago which implements an arrowhead line marker (specify
'-a' as the style in a plot command or use the keyword argument
marker="a", linestyle="-"). This patch is limited in that if you make
the linewidth greater than around 1 the end of the line will be visible
after the last arrow. Unfortunately to fix this would require doing
something more than just implementing a new marker style.

Nicholas Young

mpl_lines.diff (1.41 KB)

ยทยทยท

On Tue, 2005-11-29 at 12:25 +0100, Willi Richert wrote:

I need to draw a sequence of arrows denoting a path. There is the quiver
function which draws vector fields (and, btw, behaves differently from the
examples on the web), so this is not an option. Additionally, there is the
Arrow class. But it is very slow and, what's more important, draws distortet
arrows at some angles. Am I missing something, or are these two possibilities
the only options?