<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933</link>
    <title>MATLAB Central Newsreader - Square figure window?</title>
    <description>Feed for thread: Square figure window?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 04 Nov 2009 08:06:02 -0500</pubDate>
      <title>Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#691953</link>
      <author>Jacob </author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
Just a quick question regarding figures, Why does the following code not produce a square figure:&lt;br&gt;
&lt;br&gt;
figure('Position',[250 250 500 500])&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
Regards Jake</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 08:49:02 -0500</pubDate>
      <title>Re: Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#691961</link>
      <author>Jos </author>
      <description>&quot;Jacob &quot; &amp;lt;jacob.barton1@gmail.com&amp;gt; wrote in message &amp;lt;hcrcla$pbf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just a quick question regarding figures, Why does the following code not produce a square figure:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; figure('Position',[250 250 500 500])&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards Jake&lt;br&gt;
&lt;br&gt;
get(0,'screensize') &lt;br&gt;
&lt;br&gt;
might help you. I do not think there is a way to determine the actual size of the screen in cm programmatically.&lt;br&gt;
&lt;br&gt;
Jos</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 23:55:21 -0500</pubDate>
      <title>Re: Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#692234</link>
      <author>Jacob </author>
      <description>Thanks Jos,&lt;br&gt;
&lt;br&gt;
That returns the size off the screen, but still doesn't explain why a window 500x500 isn't square. I read in the documentation that you can change the units from pixels to normalized or absolute so was just wondering what the best approach is.&lt;br&gt;
&lt;br&gt;
I dont understand why anyone would work in pixels if a window specified as 500x500 isn't square. Its like comparing apples and oranges isn't it? Plus your GUI will be dependent on the pixel density dpiX and dpiY so it might look completely different on another machine?&lt;br&gt;
&lt;br&gt;
Regards Jake</description>
    </item>
    <item>
      <pubDate>Fri, 06 Nov 2009 12:35:19 -0500</pubDate>
      <title>Re: Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#692664</link>
      <author>Jake </author>
      <description>Can anybody please shed some more light on this problem? I assume that there is a reasonably simple explanation?&lt;br&gt;
&lt;br&gt;
Regards Jake</description>
    </item>
    <item>
      <pubDate>Fri, 06 Nov 2009 14:52:02 -0500</pubDate>
      <title>Re: Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#692691</link>
      <author>Jos </author>
      <description>&quot;Jake &quot; &amp;lt;elbarto_87@hotmail.com&amp;gt; wrote in message &amp;lt;hd1567$eum$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Can anybody please shed some more light on this problem? I assume that there is a reasonably simple explanation?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards Jake&lt;br&gt;
&lt;br&gt;
Using my measurement lint I get a square red figure (inside, i.e., excluding the bar and menu etc.) after&lt;br&gt;
&lt;br&gt;
figure('position',[200 200 500 500],'color','r')&lt;br&gt;
&lt;br&gt;
Jos</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 03:05:04 -0500</pubDate>
      <title>Re: Square figure window?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264933#692839</link>
      <author>Jake </author>
      <description>Thanks Jos,&lt;br&gt;
&lt;br&gt;
I understand it now.&lt;br&gt;
&lt;br&gt;
Regards Jake</description>
    </item>
  </channel>
</rss>

