[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    [Gnuplot-info]  Print y-values at (local) extremes
From:       LukasP <LPr () pontex ! cz>
Date:       2009-10-16 13:06:54
Message-ID: 25925173.post () talk ! nabble ! com
[Download RAW message or body]


Hello,

is there a way GNUplot to write y-values at places where the y-value is a
(local) extreme?

- Let's have a datafile with x and y values:

# x y
1 5
2 6
3 8
4 4
8 11
10 10

Than the y(x) plot of these data will have local maximum at [2; 6] and [8;
11] and the local minimum at [4; 4].

And I'm looking for a way that GNUplot would write "6" and "11" above points
of local maximums and "4" above the local minimum.

Is it possible somehow?

- I know special cases should be solved - e.g. data:

0 5
2 6
3 6
4 6
5 2

It should be decided whether the [2; 6], [3; 6] and/or [4; 6] are extremes
as well; but this is not the main question.

Or, is it possible the datafile to contain a special mark at points where
the y-values are wanted to be written? E.g.:

# x y
1 5
2 6
3 8 # y
4 4 # Y
8 11 # y
10 10

Which should mean: when plotting - "# y" => "write the y-value above", "# Y"
=> "write the y-value bellow"?

See also the attachment for the wanted effect.

Thank you in advance.

Lukas
http://www.nabble.com/file/p25925173/Clipboard01.png Clipboard01.png 
-- 
View this message in context: \
http://www.nabble.com/Print-y-values-at-%28local%29-extremes-tp25925173p25925173.html \
Sent from the Gnuplot - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic