I have a parent gnuplot script that calls a child gnuplot script depending on certain conditions. I want to combine the output graphs of the child scripts into a single .eps
file. How do I go about doing this?
As an example, my parent script is:
set terminal postscript
set output "combined.eps"
if (there_is_s == 1) call "child.gplot" "0"
if (there_is_p == 1) call "child.gplot" "1"
Where there_is_s
and there_is_p
are conditions that I've defined earlier in the parent script.
My child script child.gplot
is:
set terminal postscript
set output "child".ARG1.".eps"
#plot graph here
I basically want the 2 graphs of the child scripts into a combined .eps
file, one on each page, while using this method it creates 5 different plots child1.eps
etc.
I tried removing the option to set terminal as postscript in the child script, but that just gives me a single graph corresponding to child0.eps
, while child1.eps
is nowhere to be found. Thanks for the help!