reading labels from column headings, redux - Graphics
This is a discussion on reading labels from column headings, redux - Graphics ; I asked the question below in 2001 in this newsgroup, and then the
answer was "no".
Now I am using gnuplot 4.0 and would like to ask again.
*******************************************************************************************
Can gnuplot read column headings from a file and use them ...
-
reading labels from column headings, redux
I asked the question below in 2001 in this newsgroup, and then the
answer was "no".
Now I am using gnuplot 4.0 and would like to ask again.
*******************************************************************************************
Can gnuplot read column headings from a file and use them as labels?
Suppose you have a file "try.dat" with the contents.
x xx xxx
1 1 1
2 4 8
3 9 27
Columns 2 and 3 can with the command
plot "try.dat" using 1:2 title "xx", "try.dat" using 1:3 title "xxx"
Instead of explicitly specifying the titles "xx" and "xxx", I would
like
gnuplot to read them from the file "try.dat". Is there a way to do
this?
Obviously, one way to do this is to read the column labels using some
programming language such as AWK write the gnuplot commands to a
text file, including the titles, and run the command file. It would be
nice
if reading column headings were "built-in".
-
Re: reading labels from column headings, redux
In article <1136904518.780621.15260@o13g2000cwo.googlegroups.com>,
<beliavsky@aol.com> wrote:
>
>Now I am using gnuplot 4.0 and would like to ask again.
>Can gnuplot read column headings from a file and use them as labels?
No in version 4.0, but yes in version 4.1.
>Suppose you have a file "try.dat" with the contents.
>
>x xx xxx
>1 1 1
>2 4 8
>3 9 27
>
>plot "try.dat" using 1:2 title "xx", "try.dat" using 1:3 title "xxx"
Version 4.1 syntax:
set key autotitle columnheader
plot "try.dat" using 1:2, "" using 1:3
--
Ethan A Merritt
Similar Threads
-
By Application Development in forum RUBY
Replies: 5
Last Post: 11-14-2007, 11:49 PM
-
By Application Development in forum Idl-pvwave
Replies: 0
Last Post: 11-14-2007, 09:34 AM
-
By Application Development in forum labview
Replies: 1
Last Post: 10-26-2007, 06:40 AM
-
By Application Development in forum Python
Replies: 6
Last Post: 08-02-2007, 04:27 PM
-
By Application Development in forum Clarion
Replies: 1
Last Post: 04-19-2004, 11:21 PM