Hi Michael, Take a look at the quiver demo <http://matplotlib.sourceforge.net/examples/pylab_examples/quiver_demo.html>
and the annotation2 demo <http://matplotlib.sourceforge.net/examples/pylab_examples/quiver_demo.html> More generally, have a look through the examples and gallery pages <http://matplotlib.sf.net/examples/index.html> <http://matplotlib.sf.net/gallery.html> Gary R. Michael Cohen wrote: > Hi all, > > I have a plot that has say 6 black X's, each separate, and 6 blue X's, > also separate, denoting where x's 1-6 have moved to (from black to blue). > Currently each point is plotted with a separate plot function. > I would like to generate a plot where each black x and blue x pair has > an arrow pointing from one to the other. > > Currently I plot them like this: > > x1black = value > y1black = value > plot([x1black],[y1black],'kx',markersize=10,markeredgewidth=2) > x1blue = value > y1blue = value > plot([x1blue],[y1blue],'bx',markersize=10,markeredgewidth=2) > > If I plotted, > plot([x1black,x1blue],[y1black,y1blue]) > I could make the line between them into an arrow, but I wouldn't be able > to make one blue and the other black. > > Also, I'd like to be able to curve my arrows to make them less confusing > in case they intersect too much. > > > Can anyone point me to the right functions? > > Cheers > Michael ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users