help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clone axes


From: Michael Goffioul
Subject: Re: Clone axes
Date: Mon, 17 Oct 2011 11:26:51 +0100

On Mon, Oct 17, 2011 at 10:46 AM, pantxo diribarne
<address@hidden> wrote:
> Hello list ;
>
> I would like to know if there is a way to clone an axes of a multiple axes
> figure into an other figure. Suppose I have made a first figure that way :
>
> figure(1)
> subplot(2,1,1);
> contourf(rand(10,10));
> subplot(2,1,2);
> plot(1:10);
>
> ... and I would like to clone the subplot(2,1,1) axes into another figure.
> Is there a way to do that?

why not do:

data = rand(10,10);
figure(1)
subplot(2,1,1);
contourf(data);
subplot(2,1,2);
plot(1:10);
figure(2)
contourf(data);

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]