|
From: <br...@ph...> - 2006-08-24 20:56:22
|
pau wrote:
> Seemingly something went wrong. I got this kind of message:
>
> gnuplot> plot "Splotch4_0010_part.asc.gif" using 3:4 with dots
At least two things did go wrong, actually. First, you didn't notice
that I had assumed your data files are called *.dat, whereas yours are
actually called *.asc.
> #!/usr/bin/env zsh
> gnuplot <<EOF
> set term gif
> set output "$2"
> plot "$2" using 3:4 with dots
And there are $2 in here, but no $1. But there should be.
> unset output
> exit
> EOF
>
> The result is a lot of empty gifs.
>
> My data names are like "Splotch4_0012_part.asc.gz", and they span from
> Splotch4_0000_part.asc.gz
> to Splotch4_0500_part.asc.gz.
Second shot, this time in a single construct, which you can either type
in verbatim or save as a script file:
for f in *.asc.gz ; do
gif_file=`basename $f .asc.gz`.gif
gnuplot <<EOF
set term gif ; set output "$gif_file"
plot "< gzcat $f" using 3:4 with dots
unset output
EOF
done
|