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

List:       gnuplot-info
Subject:    Re: [Gnuplot-info] Storing point from data file in variable
From:       Jeremy Conlin <jeremit0 () gmail ! com>
Date:       2009-06-04 16:42:03
Message-ID: 3db594f70906040942q4b18d2e6h6f41ab61681e71f6 () mail ! gmail ! com
[Download RAW message or body]

On Thu, Jun 4, 2009 at 11:57 AM, Thomas Sefzick <t.sefzick@fz-juelich.de>wrote:

>
> starting with gnuplot 4.3-cvs there are new operators
> '=' and ',' in expression syntax, that means, one can use
> them for the 'using' modifier inside a 'plot' command.
>
> defining labels must be done before plotting, but access
> to the data you don't have before plotting, so filling a variable
> with some value from the datafile can only be done
> when plotting (but then it's too late to define a label).
>
> one solution is to do a dummy plot by plot 'nothing to
> nowhere', by doing this you can set the variable.
> (plotting to nowhere can be done by specifying
> 'set out "/dev/null"' on unix systems, or, plotting
> nothing can be done by printing a table to
> the terminal window or text window)
> then you define the title, label, ....
> and afterwards you do the real plot.
>
> gnuplot> set table
> gnuplot> plot 'datafilename' us 0:($0==0?(x1=$3):$3)
> gnuplot> unset table
>
> for explanation of the syntax see
> gnuplot> help table
> gnuplot> help ternary
> gnuplot> help using
> gnuplot> help using pseudocolumns


Thank you for that great information.  I'll look up those help topics and if
I have any questions, I'll post them here.

Jeremy
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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