|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-17 20:14:30
|
On Friday 17 June 2005 12:48 pm, Lutz Maibaum wrote:
> On Thursday 16 June 2005 00:23, J=FCrgen Wieferink wrote:
> > On Wednesdy, 15 June 2005 23:36, Ethan Merritt wrote:
> > > set macros
> > > file_list =3D system("ls -1 a.*.dat | dirlist.pl")
> > > plot @file_list
> >
> > In this special case, backtic substition will already do the job:
> >
> > plot `ls -1 a.*.dat | dirlist.pl`
>=20
> The problem with this is that it produces a plot with only a single item,=
=20
> i.e., all the different files have the same (point|line)style. I was hopi=
ng=20
> for a shortcut to automatically plot many files, each with a different st=
yle.
Huh? No it doesn't. It expands to
plot "a.1.dat", "a.2.dat", "a.3.dat", ...
So each plot gets a new line/point style.
I know it works, because I actually tested it using the short script
in my previous Email. An even simpler demo of the principle is
gnuplot> plot `demo.pl`
where=20
#~/usr/bin/perl
# demo.pl
print " '1.dat', '2.dat', '3.dat' "
=2D-=20
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|