Path: news.mathworks.com!not-for-mail
From: "Jacob " <jacob.barton1@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Square figure window?
Date: Wed, 4 Nov 2009 08:06:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <hcrcla$pbf$1@fred.mathworks.com>
Reply-To: "Jacob " <jacob.barton1@gmail.com>
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 1257321962 25967 172.30.248.35 (4 Nov 2009 08:06:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 08:06:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1603791
Xref: news.mathworks.com comp.soft-sys.matlab:582283


Hi All,

Just a quick question regarding figures, Why does the following code not produce a square figure:

figure('Position',[250 250 500 500])

Only thing I can think of is screen resolution is different in horizontal and vertical directions? If so, is there anyway to determine what dpiX and dpiY are? Because of this, is it better to build a GUI using units in inches or centimeters rather then using pixels?

Regards Jake