Menu

#290 wildcard & multiple using

closed-accepted
nobody
None
5
2006-10-22
2006-09-25
Janos Torok
No

Old and bad code, works only for linux but our group
uses it a lot. I hope someone rewrites it and includes
it in the distribution.

The purpose of this script is to facilitate the
command line plotting of many files with numerous
columns. (A general problem in science.)

Works for commands: plot, splot and replot

If filename contains * or ? the filename is passed to
the shell echo command to complete it. All returned
files are then plotted with the same arguments. Note
that shall also extends other wildcards like `[a-z]'
and naturally it can be used but in order to pass it
to the shell the filename must contain a star or a
question mark.

If the using field contains the `@' character and
numbers before and after (e.g. using 1:2@6) than the
plotting is modified and the plotting is executed with
all number between the given limits. For example:
> plot "a.dat" using 1:2@5
is equivalent to
> plot "a.dat" u 1:2,"a.dat" u 1:3,"a.dat" u
1:4,"a.dat" u 1:5
other example
> plot "a.dat" u 1:($2@3*2)
is equivalent to
> plot "a.dat" u 1:($2*2),"a.dat" u 1:($3*2)

One can olso specify steps by an other `@' parameter.
> plot "a.dat" u 1:2@5@2
is equivalent to
> plot "a.dat" u 1:2,"a.dat" u 1:4

Discussion

<< < 1 2 (Page 2 of 2)
  • Petr Mikulik

    Petr Mikulik - 2006-10-20

    Logged In: YES
    user_id=31505

    > I will put this patchset into cvs sometime this weekend.

    Good news.

    Notes:
    - avoid using TAB in gnuplot.doc
    - in *.dem, use "Hit return to continue" instead of <cr> as
    all other demos have that message.

    > plot for [name in "A B C Q Y Z"]

    That would even work as
    plot for [name in system("ls *.dat")]
    which would be great.

     
  • Ethan Merritt

    Ethan Merritt - 2006-10-22
    • status: open --> closed-accepted
     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.