|
From: manouchk <man...@gm...> - 2006-04-05 14:41:13
|
Le Mercredi 05 Avril 2006 11:36, manouchk a =E9crit=A0: I made a mistake with my mail. Just correcting it, sorry for inconvenience. Hi, Data file I use usually have a first line or more with comments and sometim= es=20 column with text. I used to use gnuplot that now automatically skips rows t= hat=20 does not contain numbers (before one should use every n to skip n forst lin= e)=20 and handle well files that have column without number. using column 3 and 4 from a file to plot is done using using 3:3. I wondering if there is an hidden possibilty to plot more or less directly= =20 from file as in gnuplot. imagine the file : col1 col2 col3 col4 col5 col6 T3-4B 450 100 4.31 1.44 0 T3-4B 450 200 5.56 2.06 0 T3-4B 450 500 6.03 2.09 0 T3-4A 450 5000 9.71 2.16 0 that would be a function that plots column number 3 and 4 skipping first li= ne=20 and ignoring first column (that would put zeros in the array for example) A fonction that would do that could look like that one: plotfromfile(file=3D"data",using=3D(3,4),skippingline=3D1,ignorecolumn=3D[1= ]) is there a function in pylab I missed and that already does something=20 similar? |