Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: imshow moves figure to other monitor
Date: Wed, 14 May 2008 21:23:02 +0000 (UTC)
Organization: Broadcom Canada
Lines: 32
Message-ID: <g0fl7m$khj$1@fred.mathworks.com>
References: <g0fkh5$8o1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210800182 21043 172.30.248.35 (14 May 2008 21:23:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 14 May 2008 21:23:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1380503
Xref: news.mathworks.com comp.soft-sys.matlab:468435



Hi David,

Try to use the Position property of the figure command, so
for example, if i wanted to make a figure that was one
quarter the size of the screen, positioned in the top left
corner, the following would do the trick,

scrsz = get(0,'ScreenSize');
figure('Position',[1 scrsz(4)/2 scrsz(3)/2 scrsz(4)/2])

Cheers,
Erik

"David Doria" <daviddoria@gmail.com> wrote in message
<g0fkh5$8o1$1@fred.mathworks.com>...
> I have a dual monitor setup.  If i do this
> 
> figure
> 
> then move the figure to the other monitor, then do
> 
> imshow(Data)
> 
> it moves the figure back to the original monitor
> 
> is there any way to prevent this? Is there a way to specify
> which monitor figures get created on initially?
> 
> Thanks!
> 
> Dave