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.plot(xn,yn) Hope this helps. Guillaume Le 07/04/2012 10:36, Francesco Oteri a écrit :
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: plt.plot([ (x0,y0,"g-"),(x1,y1,"b-"),...,(xN,yN,"b-")] Francesco ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
<<attachment: guillaume.vcf>>
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users