Copying windows in subplot

Mathieu Dubois mathieu.dubois at limsi.fr
Fri Feb 19 15:13:33 CET 2010


Hello everybody,

I have made a lot of plots in different windows and carefully saved the 
handles in a list.

For publication it's easier to have a single large figure with subplots. 
Therefore I would like to copy each window inside a subplot (because the 
data are long to process I would like to copy only the plots not rerun 
the script).

I have tried to use copy like in this simple example but it doesn't work:
// Two simple plots on different windows
x=-%pi:0.1:%pi;
h1=scf(); plot(x, sin(x));
h2=scf(); plot(x, cos(x));

h=scf();
// Copy h1 in the first subplot
subplot(211);
a=gca();
copy(h1, a);

// Copy h2 in the second subplot
subplot(212);
a=gca();
copy(h2, a);

Is there a graphic guru to enlighten us (me)?

Thanks in advance,
Mathieu



More information about the users mailing list