Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: changing position of a image
Date: Sun, 30 Nov 2008 02:13:01 +0000 (UTC)
Organization: PhysioSonics Inc
Lines: 26
Message-ID: <ggssrd$h2g$1@fred.mathworks.com>
References: <ggsqge$hrt$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1228011181 17488 172.30.248.37 (30 Nov 2008 02:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 30 Nov 2008 02:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1129061
Xref: news.mathworks.com comp.soft-sys.matlab:503860


"Rui Gomes" <rpgomes84@gmail.com> wrote in message <ggsqge$hrt$1@fred.mathworks.com>...
> hi.
> 
> i am developing a matlab guide.
> i have 3 images, 2 of then will never move, 
> the first is to collect points,
> the second is a example image
> and the third is the smallest and will move in the second image according with the points i want the user to click on the first image.
> 
> but and i do:
> 
>     pos_act =get(handles.axes3,'Position');
>     set(handles.axes3,'Position',[590 214 pos_act(3) pos_act(4)]);
> 
> the third image dissipates.
> 
> what can i do?
> 
> thanks for the help

I would suggest first checking the units property of your axes and figure.  Assuming that isn't the problem, you might take a look at the solution someone provided me in this thread.  I was trying to "stack" images:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/237542

Also, could you make image3 and image1 share the same axes?  I think that would make the problem easier to manage.