|
From: Thomas S. <t.s...@fz...> - 2011-10-02 19:54:27
|
it doesn't seem to be a good idea to use brackets (=2 characters) for missing data, better would be to specify something like set datafile missing "?" and use a question mark for missing data. there should be no problem to use many datafiles and assign an individual y-value to each data set, e.g. plot "datafile_1" using 1:2 with lines,\ "" using 1:3 with points pt1 ps1,\ "datafile_2" using 1:(2*$2) with lines,\ "" using 1:(2*$3) with points pt1 ps1,\ "datafile_3" using 1:(3*$2) with lines,\ "" using 1:(3*$3) with points pt1 ps1 please explain what you mean by 'output becomes miserable'? Matthias_D wrote: > > Hi, > I'm quite new to use gnuplot. Very complicated, I think. But hope I can > learn it. > > My problem (I found a complicated sollution already, but maybe there is a > simple one): > > There are many temperatur monitoring stations. The time of their activity > shall be plotted > as a horizontal line (x axis is the time [hours]) as well as the hours of > their malfunktion > (set a "+" on this line). > The x axis is the time [hours] from 1 to 17544 (for 2 years). > > Now I arranged the data in one file for each station. Looks like this: > > First column is the time (hours), second column shows the beginning and > end, third column shows the errors. > > 567 1 [] > 678 [] 1 > 679 [] 1 > .... > 17543 [] 1 > 17544 1 [] > > I inserted the brackets to tell gnuplot that here is no value to plot. > Actually the data is logical. For various stations I choose to replace the > "1" with "2", "3", ..... > Then the y axis will be 1, 2, 3 and so on and the data will be plotted > horizontally for each station. > This works fine with one file. > > plot "001.txt" using 1:2 w lines,\ > "001.txt" using 1:3 w points pt1 ps1,\ > "002.txt" u 1:2 w lines,\ > "002.txt" u 1:3 w points pt1 ps1 > > But when I want to plot more files the output becomes miserable. > > I expected to add as many files as I want, but this didn't work. > > I also tried to put all the data into a single file with many columns, but > it doesn't get better. > > Often comes the message " ';' expected. " > > Thanks for every hint! > -- View this message in context: http://old.nabble.com/Print-huge-data-into-a-single-plot-tp32578285p32579103.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |