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
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)
plt.plot(nodes[:,0],