Re: [Matplotlib-users] Plotting edges between nodes

2008-12-01 Thread twentypoundtrout
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

[Matplotlib-users] Plotting edges between nodes

2008-11-26 Thread Mauro Cavalcanti
Dear ALL, I want to plot lines (edges) between a sequence of points (nodes), using the following code: from pylab import * import matplotlib.pyplot as plt nodes = load('nodes.dat') edges = load('edges.dat') n = nodes.shape[0] fig = plt.figure() ax = fig.add_subplot(1,1,1)