Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2042 > unrolled thread

Gnuplot Min and Max label

Started byteddym <benoit.mabiala@gmail.com>
First post2013-09-20 08:07 -0700
Last post2013-09-23 00:47 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Gnuplot Min and Max label teddym <benoit.mabiala@gmail.com> - 2013-09-20 08:07 -0700
    Re: Gnuplot Min and Max label ab <ab.3942@googlemail.com> - 2013-09-23 00:47 -0700

#2042 — Gnuplot Min and Max label

Fromteddym <benoit.mabiala@gmail.com>
Date2013-09-20 08:07 -0700
SubjectGnuplot Min and Max label
Message-ID<9efa1a23-4e82-4ce4-a262-c3e804047bac@googlegroups.com>
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.

[toc] | [next] | [standalone]


#2043

Fromab <ab.3942@googlemail.com>
Date2013-09-23 00:47 -0700
Message-ID<25ac79e0-966b-4aa6-9592-2c84f083dbbb@googlegroups.com>
In reply to#2042
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web