|
From: Michael H. <mh...@al...> - 2008-10-08 14:00:23
|
Cuneyt Ertal wrote:
> Hi I am new in programming in python. I create a data file with python.
> It's layout like this:
>
> x y1 y2 y3
> y4 y5
> --------- --------- -------- -----------
> ------- ------------
> 1e-06 3.5344 22.09 61.7796 121.0 199.9396
> 1e-05 3.5344 22.09 61.7796 121.0 199.9396
> 0.0001 3.5344 22.09 61.7796 121.0 199.9396
> 0.001 3.5344 22.09 61.7796 121.0 199.9396
> 0.01 3.5344 22.09 61.7796 121.0 199.9396
> 0.1 3.5344 22.09 61.7796 121.0 199.9396
> 1 3.5344 22.09 61.7796 121.0 199.9396
> 10 3.5344 22.09 61.7796 121.0 199.9396
> 100 3.4596 21.8089 61.3089 120.5604 199.6569
> 1000 2.4649 19.0969 57.4564 116.8561 197.1216
> 10000 5.5225 39.8161 104.2441 189.3376 294.4656
> 100000 5.0625 34.9281 98.8036 185.5044 292.7521
>
> I want to plot x-y1, x-y2, x-y3, x-y4, x-y5 curves. But I could not
> assign values in x column of data file to variable x by using gnuplot. I
> can do this simply
>
> data=load('somedatafile.dat')
> x=data[:,0]
>
> with pylab package. Is there a similar load method in gnuplot.py ?
No, but you could presumably use the one from pylab, or it would be
trivial to write your own. Then stick the results into a Plotitems.Data
instance to plot it.
Michael
|