Re: Displaying a data number on the graph - (reposting)



MamboKnave wrote:

Ok, I am re-posting as it seems I was not clear.

I'm successfully plotting column 14 of a 15 columns data file made of
one single block. Here is the command line:

plot "TS-plus.csv" using 1:14:xticlabel(2) title "VARIANCE" with lines
linecolor rgb "blue"

Now I need ALSO to display on the same graph the last number of col
14, i.e. the number on top of column 14 of the data file, which is
0.5667. I need displaying only that and no other numbers.

I can display all the numbers in col 14 using this command line:

plot "TS-plus.csv" using 1:14:xticlabel(2) title "VARIANCE" with lines
linecolor rgb "blue", \

"" using 0:14:14 with labels center offset 0,1 notitle


but that's not good as I need to display the last data only.

I also played unsuccessfully with “every” (grazie iltommi!) but I
cannot keep the graph AND add just that number to it.

Hope someone can help... Thanks!
I was looking for a similar solution for displaying the last temperature
value logged into a file looking like:

2009-11-28 12:00:01 7.3
2009-11-28 12:05:02 7.2
2009-11-28 12:10:03 7.1
2009-11-28 12:15:03 7.1
2009-11-28 12:20:04 7.0
2009-11-28 12:25:05 7.0
2009-11-28 12:30:06 6.8
2009-11-28 12:35:06 6.7
2009-11-28 12:38:41 6.7
2009-11-28 12:43:42 6.7

Although a bit late I suspect, my solution.

ct = `tail -n1 tlog.csv | awk '{print $3}'`
set label "Current temperature=%2.1s^oC",ct at screen 0.05,0.02
plot...

Note: Those are backticks surrounding the shell command in the first line.
For the first line of your data file use `head -n1` $3 is for the column
number. No use for Windows users I suspect as this was on a Linux system.




.



Relevant Pages

  • Re: Displaying a data number on the graph - (reposting)
    ... linecolor rgb "blue" ... Now I need ALSO to display on the same graph the last number of col ... 14, i.e. the number on top of column 14 of the data file, which is ... I can display all the numbers in col 14 using this command line: ...
    (comp.graphics.apps.gnuplot)
  • Displaying a data number on the graph - (reposting)
    ... linecolor rgb "blue" ... Now I need ALSO to display on the same graph the last number of col ... 14, i.e. the number on top of column 14 of the data file, which is ...
    (comp.graphics.apps.gnuplot)
  • Re: Anyone remember DOS?
    ... Trying to see if anyone knows the command I'm looking for without ... and *) can be used to specify groups of files. ... When you use the DIR command, it will display all files that match the ... To display only files with the .TXT filename extension on the current ...
    (rec.music.artists.springsteen)
  • Re: using the command prompt
    ... Is there a tutorial on using the command prompt to complete ... That will display a list of all ... CD Change Directory - move to a specific Folder. ... DSACLs Active Directory ACLs ...
    (microsoft.public.windowsxp.general)
  • Re: Display problems in Vista
    ... Very small overhead. ... the command packet needs to be transfered. ... have to display a line that is x pixels wide at any zoom level. ...
    (comp.graphics.api.opengl)