Re: WhatŽs the problem with this data?
- From: Thomas Feldmann <the_white_stripes@xxxxxx>
- Date: Sun, 11 Mar 2007 11:04:23 +0100
Ethan Merritt schrieb:
In article <45f2abe9$0$28265$6e1ede2f@xxxxxxxxxxxxxx>,Thank you for your help I used version 4.1 but I will switch to 4.2 as soon as there is a windows binary since I'm unable to compile it (don't know how to do it).
Thomas Feldmann <the_white_stripes@xxxxxx> wrote:
Hi to everyone,
I canŽt figure out why gnuplot doesnŽt plot my data. Would anyone be so kind and help me with that. Below you can see my data, which are contained in a file called test.dat und the commands IŽve tried to plot this. It always says:
plot 'test.dat' u 1:2:3 t 2 with yerrorbars
^
"test.gp", line 10: all points y value undefined!
You test case works for me, with no errors.
Please provide us with the output of the gnuplot command
show version long
so that we can confirm you are using version 4.2 or 4.3 of gnuplot.
I would like to have a plot with yerrorbars that uses the columnheaders in the .dat file as keys. In the first column are the values to be printed on the x-axis the others should appear on the y-axis with different keys.
------Example-----
content of the test.dat file:
"Temperatur in °C" "alkalilöslich" "v" "H_2SO_4 löslich" "v" "dispers" "v" "polar" "v"
23 0.99 0.12 2.04 0.31 32.04 1.4 16.97 1.85
35 0.81 0.19 2.34 0.45 32.23 2.68 10.53 6.14
50 0.92 0.24 2.85 0.1 34.87 1.6 9.11 4.41
65 0.68 0.12 4.35 0.64 34.12 2.69 6.91 4.03
80 0.58 0.06 4.46 0.28 31.12 0.93 14.44 2.54
set key autotitle columnheader
plot 'test.dat' u 1:2:3 t 2 with yerrorbars
When run here, this plot the first set of value (columns 2:3) with key entry
"alkalilöslich". That is what you want, as I understand it.
Of course to plot the entire set of values you would need to say
set style data yerrorbars
plot 'test.dat' u 1:2:3 t2, '' u 1:4:5 t 4, '' u 1:6:7 t 6, '' u 1:8:9 t 8
This more complete command works fine here in version 4.2.
I've tried to plot my data again, after I had posted this example, this time I worked out without any problem. So everything is fine now.
Thomas
.
- References:
- What´s the problem with this data?
- From: Thomas Feldmann
- Re: What´s the problem with this data?
- From: Ethan Merritt
- What´s the problem with this data?
- Prev by Date: Re: Gnuplot histogram has large spaces
- Next by Date: Re: What´s the problem with this data?
- Previous by thread: Re: What´s the problem with this data?
- Next by thread: Re: What´s the problem with this data?
- Index(es):
Relevant Pages
|