Multiplots
Commands executed during initial creation of a multiplot are now stored in a
datablock $GPVAL_LAST_MULTIPLOT. They can be replayed by the new command
remultiplot. Certain saved commands that would be problematic during replay
are not reexecuted. Note that the regenerated multiplot may not exactly
match the original if graphics settings (axis ranges, logscale, etc)
have changed in the interim.
The following sequence of commands will save both the original graphics state
and the multiplot commands to a script file that can be reloaded later.
save "my_multiplot.gp"
set multiplot
... various commands to generate the component plots ...
unset multiplot
set print "my_multiplot.gp" append
print $GPVAL_LAST_MULTIPLOT
unset print
- The replot command will check to see if the most recent plot command
was part of a completed multiplot. If so, it will execute remultiplot instead of reexecuting that single plot command.
- EXPERIMENTAL. Replot requests generated by window events, mouse events,
or hot keys in a displayed multiplot will call remultiplot if appropriate. This means, for example, that you can now resize a multiplot displayed on the screen. However the mouse coordinate readout and thus zoom/pan operations are still based solely on the axis settings for the final component plot, as was the case in earlier gnuplot versions. Because the commands stored in $GPVAL_LAST_MULTIPLOT may not be sufficient to recreate the appropriate graphics settings for each component plot, mousing in a multiplot may not act as you would like. This will be improved in the future.