is it possibly to find peak(y-highest) of an xy-graph and output the
corresponding x-value to a file? i mostly output all xy values to a file
then go manually thru the file to identify the y-highest. this files are
very big, please help.
thanks
--
View this message in context: http://www.nabble.com/Help---Peak-of-a-graph-tf3604344.html#a10070103
Sent from the Gnuplot - User mailing list archive at Nabble.com.
Hi,
I don't know if it can be done in gnuplot. You could try by using
sort: suppose your file has 2 columns separated by spaces:
x-value y-value
In that case,
$ sort -t' ' -k2,2n yourfile.dat | head -1
this would give you the line corresponding to your peak.
Take a look at 'man sort' for further information.
Hern=E1n
On 4/18/07, eros69 <osa...@go...> wrote:
>
> is it possibly to find peak(y-highest) of an xy-graph and output the
> corresponding x-value to a file? i mostly output all xy values to a file
> then go manually thru the file to identify the y-highest. this files are
> very big, please help.
> thanks
> --
> View this message in context: http://www.nabble.com/Help---Peak-of-a-grap=
h-tf3604344.html#a10070103
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--=20
---------------------------------------------
Mg. Hern=E1n Gonzalo Asorey
Instituto Balseiro - CAB
(8400) San Carlos de Bariloche
R=EDo Negro - Rep. Argentina
---------------------------------------------
cabtep5.cnea.gov.ar/~asoreyh/
eros69 wrote:
> is it possibly to find peak(y-highest) of an xy-graph and output the
> corresponding x-value to a file?
Yes, but gnuplot is the wrong tool for that job. Any scripting language
or proper maths package (octave, e.g.) would be better.