Path: news.mathworks.com!not-for-mail
From: "jk Wang" <wjk1984@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Adding New Axes Object to a Figure
Date: Mon, 28 Jan 2008 16:03:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 42
Message-ID: <fnkubm$l0k$1@fred.mathworks.com>
References: <fnjgsl$g4q$1@fred.mathworks.com> <fnjmjk$34v$1@canopus.cc.umanitoba.ca>
Reply-To: "jk Wang" <wjk1984@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1201536182 21524 172.30.248.37 (28 Jan 2008 16:03:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 28 Jan 2008 16:03:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1167553
Xref: news.mathworks.com comp.soft-sys.matlab:447950


Hi, George

I thought axes() won't change previous axes objects, but
when I tried the following codes, the image displayed were
cleared by an new axes.

Here's my code,
 
figure; 
h1 = gcf;
axes(h1)
imshow(imread('lego08.gif')) %display an image
figure(h1);axes              %create another axes.

By the way, if there's no way to add axes without affecting
previous axes objects. Is it possible to display multiple
images on the same axes without overlapping?

Thanks!

JK Wang


roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fnjmjk$34v$1@canopus.cc.umanitoba.ca>...
> In article <fnjgsl$g4q$1@fred.mathworks.com>,
> jk Wang <wjk1984@gmail.com> wrote:
> 
> >I want to write a program that can adding new axes, but 
> >without changing the other axes existing on the figure. All 
> >of these axes display different images. 
> 
> >So how can I keep the former axes (and their images) 
> >unchanged while adding a new one? Help me please~ 
> 
> Just do it. The axes() function does not clear the figure.
> -- 
>   "There are some ideas so wrong that only a very
intelligent person
>   could believe in them."                            --
George Orwell