Re: WhatŽs the problem with this data?



Ethan Merritt schrieb:
In article <45f2abe9$0$28265$6e1ede2f@xxxxxxxxxxxxxx>,
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.


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).
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
.



Relevant Pages

  • Re: Point color as a function of additional data
    ... to plot 3D data in a 2D plot; that's what is causing the error message. ... 2D plots cannot color by Z value; please use splot instead ... you need the "splot" command. ... (when starting gnuplot from the command line) ...
    (comp.graphics.apps.gnuplot)
  • gnuplots tiny problems
    ... The quality of the gnuplot package is really impressive. ... plot area being very small (the space for xlabel and xtics are ... The XORing of the mouse text on the windows background ... As the rectangle object trick over the graph plot area does not ...
    (comp.graphics.apps.gnuplot)
  • Re: Choice colors of points in surface plot
    ... I like to choice colors of points in a surface plot. ... When using Gnuplot 4.2.5. ... the incorrect postscript file. ... For X11 and WX I only use the command: ...
    (comp.graphics.apps.gnuplot)
  • Re: data files and stdin/out
    ... Commands and data are communicated to gnuplot through a pipe. ... I can't figure out how translate the command plot 'file' using 1:2 ... If you need multiple input sources also see gnuplot ...
    (comp.graphics.apps.gnuplot)
  • Re: HTML5 and canvas connection from gnuplot in J7 JHS
    ... In some cases gnuplot may be preferable to Google Charts as described in the IDE section. ... Learn about gnuplot and how to install it at www.gnuplot.info. ... gp0 through gp5 create html plot files ... JUM is a JHS application that runs on a web server that provides JHS servers to J users. ...
    (comp.lang.apl)