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 ...

+ Reply to Thread
Results 1 to 2 of 2

reading labels from column headings, redux

  1. Default 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".


  2. Default 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

+ Reply to Thread

Similar Threads

  1. reading a column formatted data
    By Application Development in forum RUBY
    Replies: 5
    Last Post: 11-14-2007, 11:49 PM
  2. Removing Table Widget Column Labels
    By Application Development in forum Idl-pvwave
    Replies: 0
    Last Post: 11-14-2007, 09:34 AM
  3. Adding Column Headings when writing an Excel file
    By Application Development in forum labview
    Replies: 1
    Last Post: 10-26-2007, 06:40 AM
  4. [2.5] Reading a two-column file into an array?
    By Application Development in forum Python
    Replies: 6
    Last Post: 08-02-2007, 04:27 PM
  5. Printing Labels using Continuous pin feed labels & not Sheet labels
    By Application Development in forum Clarion
    Replies: 1
    Last Post: 04-19-2004, 11:21 PM