Mauro Cavalcanti wrote: > > The above code works quite well. However, I do *not* want to have the > plot done for each edge inside the for loop; instead, I would like to > have the x,y points stored for being plotted at once, using a plot > command issued outside the loop. It seems that it could be done using > MPL line collections, but I could not figure out how to do this. Any > hints? >
You can plot the columns of a X/Y data using one plot command here: from pylab import * nodes = load('nodes.dat') edges = int16(load('edges.dat')) - 1 x = nodes[edges,0].transpose() y = nodes[edges,1].transpose() plot(x,y,'-bo') show() -- View this message in context: http://www.nabble.com/Plotting-edges-between-nodes-tp20708135p20774488.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users