How to output a file in gnuplot multiset mode?

I draw graphics in gnuplot multiplexer mode (version 4.6 patchlevel 5), which is updated using re-reading.

set multiplot layout 3, 3 do for [planeIter=4:10:3] for [ringIter=0:20:10] { plot for [quadIter=0:90:30] path/to/file \ using 1:(column(1 + planeIter + ringIter + quadIter)) notitle } pause 10 reread 

I used to output png files using:

 set terminal pngcairo dashed enhanced plot path/to/file using 1:2 set output 'foo.png' 

But I could not find a way to output the file with the last animation screen. Please tell me how can I do this? Thanks.

+8
output gnuplot
source share
1 answer

As gnuplot tells you:

you cannot change the output in multiset mode

So, make sure you install it in advance:

 set terminal pngcairo dashed enhanced set output 'foo.png' set multiplot layout 3, 3 do for [planeIter=4:10:3] for [ringIter=0:20:10] { plot for [quadIter=0:90:30] path/to/file \ using 1:(column(1 + planeIter + ringIter + quadIter)) notitle } unset multiplot unset output pause 10 reread 

This is currently an infinite loop, so I assume that you interrupt it manually. The unset lines will cause output reset, so your final image will be recorded.

+4
source share

All Articles