Maybe this would be a better question for office hours? I have created 4 figures individually and saved the graphs as fig1a.plot
, fig1b.plot
, fig1c.plot
and fig1d.plot
. I would like to turn these into a single 2 x 2 panel plot. I know I can always just copy the code from each individual plot creation program into a single program and use plotlayout(2,2,i) for i = 1 to 4
but that seems inelegant. Is it possible to do something like
let string fname = {"fig1a.plot", "fig1b.plot"...}
do until i gt 4;
plotlayout(2,2,i);
<input plot from fname[i]>
i = i +1;
endo;
then save the entire 2 x 2 panel figure as a single graph?
This may seem like a stretch but if any program can do this, it would be GAUSS graphics...
Thanks
1 Answer
0
accepted
That is a very interesting idea. I like your thinking! Unfortunately, GAUSS cannot do that as of now.
I agree that copy-and-pasting 4 programs into the same file is not a wonderful solution. I have another solution for you that involves less typing and file manipulation. It is not as elegant as yours would have been, but might be simpler.
Here is an example you can use with some of the GAUSS graphics example files. NOTE: FOR THIS TO WORK, YOU WILL NEED TO COMMENT OUT ANY new; STATEMENTS before you run these programs.
plotLayout(2,2,1);
#include plotfueleconomy.e;
plotLayout(2,2,2);
#include plotunemp.e;
Your Answer
1 Answer
That is a very interesting idea. I like your thinking! Unfortunately, GAUSS cannot do that as of now.
I agree that copy-and-pasting 4 programs into the same file is not a wonderful solution. I have another solution for you that involves less typing and file manipulation. It is not as elegant as yours would have been, but might be simpler.
Here is an example you can use with some of the GAUSS graphics example files. NOTE: FOR THIS TO WORK, YOU WILL NEED TO COMMENT OUT ANY new; STATEMENTS before you run these programs.
plotLayout(2,2,1);
#include plotfueleconomy.e;
plotLayout(2,2,2);
#include plotunemp.e;