get 1st data of column 3:
x1 = system("head -n1 datafilename | cut -d ' ' -f 3")
or
x1 = system("head -n1 ts.dat | awk '{print $3}'")
or with gnuplot 4.3-cvs:
set table
plot 'datafilename' us 0:($0==0?(x1=$3):$3)
unset table
Jeremy Conlin wrote:
I have a file containing all my data. I can easily plot that data. I need
to store the first data point in a particular column so I can place a label
at that point. Can someone show me how to do this?
Small example:
# ----------------------------------
x1 = # Get data from file
y1 = 1.0
set label "Hello" at x1, y1 right
# -----------------------------------
Thanks,
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