The arrows worked quite well, but I can't figure out how to curve them in a natural way, so they don't overlap. Also, how do I alter the breadth of the arrowhead, and to make it the same size along arrows of all lengths?
Cheers, Mike Jose Gomez-Dans wrote: > Hi, > 2009/11/29 Michael Cohen <mco...@caltech.edu <mailto:mco...@caltech.edu>> > > 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. > > > See this cookbook entry: <http://www.scipy.org/Cookbook/Matplotlib/Arrows> > > What I usually do in these circumstances (and what is demonstrated in > the cookbook entry) is to plot the points, and then add an arrow patch > for each pair: > arrow = pylab.Arrow ( x_from, y_from, distance_x, distance_y ) > ax = pylab.gca() > ax.add_patch(arrow) > > Hope that helps! > Jose ------------------------------------------------------------------------------ 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