#22 plot ... index by name instead of number

closed-accepted
None
2
2007-02-08
2002-05-02
Anonymous
No

This patch allows assigning names to data sets
in data files and selecting them during a plot
by use of their name with the index modifier.

Sometimes it is inconvenient to work with index
numbers to select data sets from data files.
Especially human readability can be increased
by "named" data sets and data sets can be stuffed
into a data file at every position if they can be
accessed by a name instead of a number (their
position).

Names are assigned to data sets in comment lines:
The requested name from the plot command is compared
with the comment lines (comment char and leading
whitespace removed): If the line starts with the
requested string, the next data set will be plotted.

Example:
plot '-' index 'Population'
# Income
12
32
43

# Population
345
567
654

# Something else here
3
4
9
e

Discussion

    • summary: "Named" data sets in data files --> "Named" data sets in data files
    • status: open --> pending-invalid
     
  • Logged In: YES
    user_id=27517

    [I've moved the actual patch from the separate report into
    this one.]

    This looks like a nice idea. Pending a review of the patch
    itself, I think I'll check this in unless I find it in
    conflict with the "categoric" patch --- which you may want
    to have a look at, Volker...

     
  • Patch copied over from other entry...

     
    Attachments
    • assigned_to: nobody --> broeker
    • summary: "Named" data sets in data files --> plot ... index by name instead of number
    • status: pending-invalid --> open-invalid
     
  • Ethan Merritt
    Ethan Merritt
    2006-06-14

    Logged In: YES
    user_id=235620

    In preparation for a code freeze and the run-up to a release of
    version 4.2, existing bugs and patchsets are being prioritized.

    This patchset is not on my (sfeam) list for inclusion in 4.2 and
    is therefore being marked as priority 2.

    Note that this does not mean it is a bad patch, or that it won't
    be incorporated into cvs after 4.2 is released. We can
    re-evaluate priorities after 4.2 is out.

    If you want to argue for immediate reconsideration - go right
    ahead; but do so quickly!

    Ethan Merritt

     
  • Ethan Merritt
    Ethan Merritt
    2006-06-14

    • priority: 5 --> 2
     
  • Ethan Merritt
    Ethan Merritt
    2007-02-08

    • status: open-invalid --> closed-accepted
     
  • Ethan Merritt
    Ethan Merritt
    2007-02-08

    Logged In: YES
    user_id=235620
    Originator: NO

    Updated, simplified, and added to cvs.