<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323</link>
    <title>MATLAB Central Newsreader - Figure vs axis handles?</title>
    <description>Feed for thread: Figure vs axis handles?</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>Thu, 10 Apr 2008 14:26:31 -0400</pubDate>
      <title>Figure vs axis handles?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323#425869</link>
      <author>David Doria</author>
      <description>f=figure;&lt;br&gt;
BottomLeftPlot = subplot('Position', [.05 .1 .4 .4]);&lt;br&gt;
&lt;br&gt;
I can set some properties like this:&lt;br&gt;
xlim(BottomLeftPlot, [-180 180]);&lt;br&gt;
&lt;br&gt;
and some like this:&lt;br&gt;
set(BottomLeftPlot, 'XLimMode', 'manual');&lt;br&gt;
&lt;br&gt;
but some dont work at all?&lt;br&gt;
set(BottomLeftPlot, 'YLabel', 'beta');&lt;br&gt;
&lt;br&gt;
Is there a good tutorial somewhere about which properties&lt;br&gt;
belong to the figure, which belong to the axis (or is it&lt;br&gt;
axEs?) and how to set them?&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 14:31:09 -0400</pubDate>
      <title>Re: Figure vs axis handles?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323#425871</link>
      <author>avan</author>
      <description>On Apr 10, 4:26 pm, &quot;David Doria&quot; &amp;lt;daviddo...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; f=figure;&lt;br&gt;
&amp;gt; BottomLeftPlot = subplot('Position', [.05 .1 .4 .4]);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I can set some properties like this:&lt;br&gt;
&amp;gt; xlim(BottomLeftPlot, [-180 180]);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; and some like this:&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'XLimMode', 'manual');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but some dont work at all?&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'YLabel', 'beta');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is there a good tutorial somewhere about which properties&lt;br&gt;
&amp;gt; belong to the figure, which belong to the axis (or is it&lt;br&gt;
&amp;gt; axEs?) and how to set them?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Dave&lt;br&gt;
&lt;br&gt;
Yes, if you open the help browser and look under &quot;Handle Graphics&lt;br&gt;
Property Browser&quot;. Hope it helps.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
avan</description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 15:14:08 -0400</pubDate>
      <title>Re: Figure vs axis handles?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323#425880</link>
      <author>David Doria</author>
      <description>Thanks, thats really helpful - here is the solution to my&lt;br&gt;
problem:&lt;br&gt;
&lt;br&gt;
doesn't work:&lt;br&gt;
set(BottomLeftPlot, 'Title', 'OnCircle');&lt;br&gt;
&lt;br&gt;
works fine:&lt;br&gt;
set(BottomLeftPlot, 'Title', text('String','OnCircle'));&lt;br&gt;
&lt;br&gt;
it seems matlab should be able to recognize that 'OnCircle'&lt;br&gt;
should be treated as a text string... but apparently it can't.&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 17:54:02 -0400</pubDate>
      <title>Re: Figure vs axis handles?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323#425909</link>
      <author>Bruno Luong</author>
      <description>&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ftlas0$ke9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; doesn't work:&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'Title', 'OnCircle');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; works fine:&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'Title', text('String','OnCircle'));&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Go to help page and type &quot;axes properties&quot; in the search&lt;br&gt;
box, in the description of &quot;title&quot; property, the help file&lt;br&gt;
states that the value must be a handle, and not a string.&lt;br&gt;
&lt;br&gt;
text('String','OnCircle') returns a handles.&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 20:45:53 -0400</pubDate>
      <title>Re: Figure vs axis handles?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167323#425949</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:ftlas0$ke9$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Thanks, thats really helpful - here is the solution to my&lt;br&gt;
&amp;gt; problem:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; doesn't work:&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'Title', 'OnCircle');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; works fine:&lt;br&gt;
&amp;gt; set(BottomLeftPlot, 'Title', text('String','OnCircle'));&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; it seems matlab should be able to recognize that 'OnCircle'&lt;br&gt;
&amp;gt; should be treated as a text string... but apparently it can't.&lt;br&gt;
&lt;br&gt;
Correct.  The Title property of an axes stores the handle to a text object, &lt;br&gt;
and that text object stores the string that is displayed as the title.  You &lt;br&gt;
could use the method you described above, or you could use:&lt;br&gt;
&lt;br&gt;
set(get(BottomLeftPlot, 'Title'), 'String', 'OnCircle')&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#Title&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#Title&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Or, of course, you could use the TITLE function, which accepts as one of its &lt;br&gt;
inputs a handle to the axes whose title you want to set or change.  If &lt;br&gt;
you're going to be modifying the title frequently, you can also return the &lt;br&gt;
title text object's handle from TITLE and use SET on it directly later on.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

