You can use CSV, but possibly not in the way you want to. It looks like
there must be spaces after the commas as well. Gnuplot wants there to be
a single point per line of the data file.
Examples are:
# Gnu population in Antarctica since 1965
1965 103
1970 55
1975 34
1980 24
1985 10
which is to be plotted with:
pop(x) = 103*exp((1965-x)/10)
plot [1960:1990] 'population.dat', pop(x)
You can easily add commas to the above data
and still plot it.
(e.g.
1965, 103
1970, 55 ... etc)
In the case of
1965, 103, 110, 34,
1970, 55, 75, 23,
1975, 34, 22, 10
You can using some thing like the using option.
plot [1960:1990] 'population.dat' using 1:2, 'population.dat' using 1:3,
'population.dat' using 1:4
This will pick of the first column and the second or the first and the
third, etc. Gnuplot is not going to let you use CSV without doing a
little work.
> gnuplot
gnuplot> help plot datafile
# for 3-d stuff.
gnuplot> help splot datafile
and
http://www.uni-karlsruhe.de/~ig25/gnuplot-faq/
.justin.
------------------------------------------------------------------------
Justin Leonard Tripp justin@xxxxxxxxxx
Configurable Computing Laboratory Research Assistant CB 461 x8-7206
Electrical and Computer Engineering Department Brigham Young University
On 17 Jan 2002, Austin Gonyou wrote:
> I'm about ready to give up. I'm doing some benchmarking of XFS+LVM
> Striping v. XFS+HW RAID0 to determine the differences, if any, of our
> setup. I don't fully understand how gnuplot works. Can anyone give me
> some kind of idea if I can use CSV input, etc? I can't seem to find any
> of this info in the man pages or google etc. Sorry for the
> inconvenience.
>
>
> --
> Austin Gonyou
> Systems Architect, CCNA
> Coremetrics, Inc.
> Phone: 512-698-7250
> email: austin@xxxxxxxxxxxxxxx
>
> "It is the part of a good shepherd to shear his flock, not to skin it."
> Latin Proverb
>
|