|
From: Thomas S. <t.s...@fz...> - 2009-12-08 13:10:18
|
on a unix-like system:
set xlabel system("awk -F '\"' '{if (NR==1) print $2}' Test.data")
set ylabel system("awk -F '\"' '{if (NR==1) print $4}' Test.data")
sprobst wrote:
>
> Dear all,
>
> I have a simple problem. If I have a data file like this
>
> ** Test.data ***
> "Test col 1[mm]" "Test col2[%]"
> 1 1
> 2 4
> 3 9
> *************
>
> How can I get the columnheaders as the xlabel descriptions. Something like
>
> set xlabel *Columenheader(1) of file Test.data*
> set ylabel *Columenheader(2) of file Test.data*
> plot 'Test.data' using 1:2
>
> Is this possible to do something like this directly in gnuplot or do I
> have to use an external script?
>
> Thank you in advance!
>
> Best regards
> Stefan
>
--
View this message in context: http://old.nabble.com/Columenheaders-as-axis-labels-tp26690447p26693658.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|