Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Gnuplot Min and Max label

393 views
Skip to first unread message

teddym

unread,
Sep 20, 2013, 11:07:46 AM9/20/13
to
Hello,

I would like to know what to add on my script to display the Min and Max of my plot as label by using gnuplot script.

Here what my input file looks like:
69 17:58:31
44 17:58:32
87 17:58:33
173 17:58:34
69 17:58:35

In this example my min=44 and my max=173

Here is my script.
Citation:
set terminal png size 800, 600
set output "tick_time.png"
set xdata time
set nologscale; set nologscale y
set title "Bandwidth Mesurement Kbytes"
set timefmt "%H:%M:%S"
set xtics 600
plot "bptable" using 2:1 title "Average bp per second" with lines lt 3, \
"bptableavg" using 2:1 title "Average bp per minute" with lines lt 1
ps: stats ne fonctionne pas dans la version que j'utilise.

ab

unread,
Sep 23, 2013, 3:47:43 AM9/23/13
to
Hello,

> ps: stats ne fonctionne pas dans la version que j'utilise.
The easiest way would be the stats command.

Try
plot "filename" u 1
print GPVAL_DATA_Y_MIN , GPVAL_DATA_Y_MAX
0 new messages