a) use the 'reread' command to execute a plot command file for each data
file.
works nicely if the data file names are consecutively numbered.
see 'help reread'
b) with the development version of gnuplot you may use the 'do for' loop.
c) use a shell script, batch file, or whatever your operating system
provides to call gnuplot for each data file.
Federico P wrote:
>
> Hello everybody, :jumping:
>
> i try to save by terminal files.dbl that gnuplot is able to read. I can do
> this easy and the resulting image is something like that:
>
> http://old.nabble.com/file/p32662007/rho.0013.png rho.0013.png :-{
>
> Now i want to see a 3d image and, of course B-) , i can do this with
> simple commands whit gnuplot, the following is an example of the images:
>
> http://old.nabble.com/file/p32662007/0004.jpeg 0004.jpeg =^D
>
> But the question is, i have A LOT of files.dbl and i want to do a lot of
> 3d images, how can i do this with gnuplot? I think that it's possible
> with a script that takes every file.dbl and save them by terminal
> :confused: .
> With a single file this is possible with the following command that i use
> by shell:
>
>
> gnuplot> set pm3d
> gnuplot> unset surface
> gnuplot> set key outside
> gnuplot> set terminal png:-O
> Terminal type set to 'png'
> Options are 'nocrop font
> /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf 12
> size 640,480 '
> gnuplot> set output 'diocane.png'
> gnuplot> splot 'data.0007.dbl' bin array=1000x1000 format='%double'
> notitle
>
> The question is, i repeat: how can i do this recursively ? :-/
>
> Thanks to all for your interest.
>
> greeting
>
--
View this message in context: http://old.nabble.com/ricorsive-script-to-plot-files-tp32662007p32674411.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|