From: yaya yoyo on
Hello,
I have two subplots I wish to overlay but don't know how.
Say I have one subplot(2,1,1) and the other which is the partially overlapping with the axis of the first one (say. subplot(4,1,1)). I want to plot them one on top of the other.
When I do that, the later subplot overrides the first one.
Does anyone have an idea of how I can force the first subplott to remain in place and not to vanish?
I specifically want to use subplots and not axis.
Thank you :)
From: kinor on
"yaya yoyo" <matlab101(a)walla.co.il> wrote in message <hl3599$24b$1(a)fred.mathworks.com>...
> Hello,
> I have two subplots I wish to overlay but don't know how.
> Say I have one subplot(2,1,1) and the other which is the partially overlapping with the axis of the first one (say. subplot(4,1,1)). I want to plot them one on top of the other.
> When I do that, the later subplot overrides the first one.
> Does anyone have an idea of how I can force the first subplott to remain in place and not to vanish?
> I specifically want to use subplots and not axis.
> Thank you :)

HELP copyobj
From: Jan Simon on
Dear yaya yoyo!

> Say I have one subplot(2,1,1) and the other which is the partially overlapping with the axis of the first one (say. subplot(4,1,1)). I want to plot them one on top of the other.
> When I do that, the later subplot overrides the first one.
> Does anyone have an idea of how I can force the first subplott to remain in place and not to vanish?
> I specifically want to use subplots and not axis.

SUBPLOT searchs the figure for existing plots and deletes them in case of overlapping. So the problem in the last restriction of your posting:
"> I specifically want to use subplots and not axis. "

Use AXES with matching Position instead of SUBPLOT.

Kind regards, Jan