Hi,
I think it would be useful if gnuplot's capability to put several plots
next to each other could be offered to the gretl user. What comes to
mind is the 'plot ... end plot' block.
What I mean is to introduce a further 'subplot' nested block such that
the following block would produce the same thing as the (already
currently working, at least for me) hansl code at the end.
Would that be too difficult to arrange?
thanks,
sven
--
<proposed>
plot
option multiplot-layout=2,1 # or similar
option time-series # would apply to all subplots
subplot LRM
# room for specific options
end subplot
subplot LRY
# room for specific options
end subplot
end plot --output="display"
</proposed>
<hansl-now>
open denmark
# produce the subplots
gnuplot LRM --time-series --output="p1.plt"
gnuplot LRY --time-series --output="p2.plt"
string s1 = readfile("p1.plt")
string s2 = readfile("p2.plt")
# prepare the combination commands
outfile multi.plt --write
print "set multiplot layout 2,1 columnsfirst"
printf "%s\n%s\n", s1, s2
print "unset multiplot"
outfile --close
# execute and display
gnuplot --input="(a)workdir\multi.plt" --output="display"
</hansl-now>