"Matt Fig" <spamanon@yahoo.com> wrote in message <ht9e40$5p4$1@fred.mathworks.com>...
> This should work. You will get more than one child if there is more than one thing plotted or an annotation, etc.
>
>
>
> gu = open('gugu.fig');
> gu_ax = gca;
> lu = open('lulu.fig');
> lu_ax = gca;
>
> figure; % The new figure
> P = subplot(1,2,2);
> copyobj(get(gu_ax,'children'),P)
> P = subplot(1,2,1);
> copyobj(get(lu_ax,'children'),P)
Getting there ) but still something is missing:
if the axes in lulu and gugu are not the same, for some reason i get the same axes in both subplots. I try to do the folllowing in order to change the axes seperatly but it doesn't work fine:
Plu = subplot(1,2,1);
PPlu=get(Plu,'Parent');
copyobj(get(lu,'children'),PPlu)
I seem to override both subplots with lulu...
> This should work. You will get more than one child if there is more than one thing plotted or an annotation, etc.
>
>
>
> gu = open('gugu.fig');
> gu_ax = gca;
> lu = open('lulu.fig');
> lu_ax = gca;
>
> figure; % The new figure
> P = subplot(1,2,2);
> copyobj(get(gu_ax,'children'),P)
> P = subplot(1,2,1);
> copyobj(get(lu_ax,'children'),P)
Getting there ) but still something is missing:
if the axes in lulu and gugu are not the same, for some reason i get the same axes in both subplots. I try to do the folllowing in order to change the axes seperatly but it doesn't work fine:
Plu = subplot(1,2,1);
PPlu=get(Plu,'Parent');
copyobj(get(lu,'children'),PPlu)
I seem to override both subplots with lulu...