Export ymax Data to txt document

View: New views
3 Messages — Rating Filter:   Alert me  

Export ymax Data to txt document

by Bertze :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey, if i plot a 2d curve from a data file, gnuplot saves a max value for y called gvp_ymax_data or something like this.

How can i export this one value in a txt dokument?

Re: Export ymax Data to txt document

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

copy GPVAL_Y_MAX into a user defined variable and save it:
my_gpval_y_max = GPVAL_Y_MAX
save var "|grep my_gpval_y_max | awk '{print \$3}' > file.dat"

see:
http://www.gnuplot.info/docs/node59.html
http://www.gnuplot.info/docs/node153.html

Bertze wrote:
Hey, if i plot a 2d curve from a data file, gnuplot saves a max value for y called gvp_ymax_data or something like this.

How can i export this one value in a txt dokument?

Re: Export ymax Data to txt document

by Tatsuro MATSUOKA-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

--- Thomas Sefzick wrote:

>
> copy GPVAL_Y_MAX into a user defined variable and save it:
> my_gpval_y_max = GPVAL_Y_MAX
> save var "|grep my_gpval_y_max | awk '{print \$3}' > file.dat"

I have got an idea in the following to see the above example

set print 'file.dat'
print GPVAL_Y_MAX
set out

Regards

Tatsuro

--------------------------------------
Yahoo! JAPAN - Internet Security for teenagers and parents.
http://pr.mail.yahoo.co.jp/security/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info