|
From: Thomas S. <t.s...@fz...> - 2009-05-21 19:03:34
|
you could read in the 1st column on a per-line basis
using unix (do these exist on a mac?) commands:
s=system('head -n 1 datafilename | tail -n 1 | awk "{print \$1}"')
or
s=system('head -n 2 datafilename | tail -n 1 | awk "{print \$1}"')
you read up to the line you want to get the data from (head),
then you take the last line only (tail), and extract the 1st value (awk).
then you may use the variable 's' for setting a label
set label 1 s at .....
or setting the plot key
plot 'datafilename' using ... title s ...
joachim heintz wrote:
>
> I'm not sure how complicated it will be to upgrade to 4.3-cvs. I'm on
> OSX and had some difficulties to install gnuplot. Compiling from
> sources gave some errors I didn't understand, so I went to the
> darwinports. This worked, but I'm not sure if I can install 4.3 via
> Darwinports.
> For the moment it would be sufficient to print my first column in the
> Terminal window. Can I do this with gnuplot 4.2? I tried 'print $1'
> but this doesn't work.
> Thanks -
> joachim
>
--
View this message in context: http://www.nabble.com/Plot-questions-tp23464492p23658667.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|