Re: [Matplotlib-users] variable data set plotting

2012-04-07 Thread Francesco Oteri
Hi Guillaume , actually the "loop" version fits better with my requirements. Thanks, Francesco Il 07/04/2012 12:28, Guillaume Gay ha scritto: Hi Fransesco, This is possible indeed, from the doc: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot: you can do this: a.pl

Re: [Matplotlib-users] variable data set plotting

2012-04-07 Thread Guillaume Gay
Hi Fransesco, This is possible indeed, from the doc: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot: you can do this: a.plot(x1, y1, 'g^', x2, y2, 'g-') But I would rather set up a loop: for file in sys.arv[1:]: ... #read your data plt.

[Matplotlib-users] variable data set plotting

2012-04-07 Thread Francesco Oteri
Dear Matplotlib users, I am trying to write a script that read a variable number of data set like: script.py set0.dat set1.dat . setN.dat The problem rise in the method plt.plot() because I don't know how manage a variable number of argument. I am wondering wether exists something like: p