[Matplotlib-users] plotting in a loop

2010-04-20 Thread tomislav_ma...@gmx.com
Hello everyone, if I read a column file like this (simplified to integers): 0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6 with: data = np.loadtxt(fileName), why can't I use a for loop inside ipython (started with -pylab option) to plot each of the Line2D objects and then draw them on the plot? I am using

Re: [Matplotlib-users] plotting in a loop

2010-04-20 Thread Stephen George
Hi, Sorry haven't used ipython, so not sure if there is another/better ipython way. Attached is how I solved it in normal python. I added a next line button to the graph, and set the ydata for the line each time the button is pushed. There is a couple of set_ylim lines commented out,