<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Customizing axes part 2	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-axes-part-2/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-axes-part-2</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 11 Jan 2018 16:12:03 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Tiago Dias		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-418428</link>

		<dc:creator><![CDATA[Tiago Dias]]></dc:creator>
		<pubDate>Thu, 11 Jan 2018 16:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-418428</guid>

					<description><![CDATA[Hello,

I was wondering if is possible just to change the width of the Square of the plot.

Using the BoxFrame i manage to change the width of the square and the grid, but I only want to change the Axes of X and Y bottom and top, left and right.

I found this online :
&lt;pre lang=&quot;matlab&quot;&gt;
    hold on
    xl = xlim;
    yl = ylim;
    plot(xl,ones(1,2)*yl(1), &#039;-k&#039;, ones(1,2)*xl(1), yl, &#039;-k&#039;, &#039;LineWidth&#039;,2); % Left  &amp; Lower Axes
    plot(xl,ones(1,2)*yl(2), &#039;-k&#039;, ones(1,2)*xl(2), yl, &#039;-k&#039;, &#039;LineWidth&#039;,2); % Right &amp; Upper Axes    
    hold off
&lt;/pre&gt;

but since I have a plot(datatime,variableX) before, is send me an error message because I have datetime data, since datetime is 01/01/2016 00:00:00 etc

Best Regards,
Tiago]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I was wondering if is possible just to change the width of the Square of the plot.</p>
<p>Using the BoxFrame i manage to change the width of the square and the grid, but I only want to change the Axes of X and Y bottom and top, left and right.</p>
<p>I found this online :</p>
<pre lang="matlab">
    hold on
    xl = xlim;
    yl = ylim;
    plot(xl,ones(1,2)*yl(1), '-k', ones(1,2)*xl(1), yl, '-k', 'LineWidth',2); % Left  &#038; Lower Axes
    plot(xl,ones(1,2)*yl(2), '-k', ones(1,2)*xl(2), yl, '-k', 'LineWidth',2); % Right &#038; Upper Axes    
    hold off
</pre>
<p>but since I have a plot(datatime,variableX) before, is send me an error message because I have datetime data, since datetime is 01/01/2016 00:00:00 etc</p>
<p>Best Regards,<br />
Tiago</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: stochos		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412422</link>

		<dc:creator><![CDATA[stochos]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 17:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-412422</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412421&quot;&gt;stochos&lt;/a&gt;.

Looking at your site, I&#039;ve found the following links.
http://undocumentedmatlab.com/blog/uiinspect
http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties

Thanks for your excellent site.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412421">stochos</a>.</p>
<p>Looking at your site, I&#8217;ve found the following links.<br />
<a href="http://undocumentedmatlab.com/blog/uiinspect" rel="ugc">http://undocumentedmatlab.com/blog/uiinspect</a><br />
<a href="http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties" rel="ugc">http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties</a></p>
<p>Thanks for your excellent site.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: stochos		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412421</link>

		<dc:creator><![CDATA[stochos]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 17:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-412421</guid>

					<description><![CDATA[Many thanks sir.

Please do reveal on how to unhide so that I can access it.]]></description>
			<content:encoded><![CDATA[<p>Many thanks sir.</p>
<p>Please do reveal on how to unhide so that I can access it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412257</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 20 Aug 2017 21:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-412257</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412253&quot;&gt;stochos&lt;/a&gt;.

The &lt;b&gt;BoxFrame&lt;/b&gt; property of an axes handle still exists as of R2017a. It&#039;s hidden, but fully accessible.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412253">stochos</a>.</p>
<p>The <b>BoxFrame</b> property of an axes handle still exists as of R2017a. It&#8217;s hidden, but fully accessible.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: stochos		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-412253</link>

		<dc:creator><![CDATA[stochos]]></dc:creator>
		<pubDate>Sun, 20 Aug 2017 21:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-412253</guid>

					<description><![CDATA[It doesn&#039;t appear that the BoxFrame property is part of Matlab anymore.
Please confirm.]]></description>
			<content:encoded><![CDATA[<p>It doesn&#8217;t appear that the BoxFrame property is part of Matlab anymore.<br />
Please confirm.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355517</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 10:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-355517</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355516&quot;&gt;Fred Vanner&lt;/a&gt;.

Because of the &lt;a href=&quot;http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt&quot; rel=&quot;nofollow&quot;&gt;EDT&lt;/a&gt;.
Also read this: http://undocumentedmatlab.com/blog/solving-a-matlab-hang-problem]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355516">Fred Vanner</a>.</p>
<p>Because of the <a href="http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt" rel="nofollow">EDT</a>.<br />
Also read this: <a href="http://undocumentedmatlab.com/blog/solving-a-matlab-hang-problem" rel="ugc">http://undocumentedmatlab.com/blog/solving-a-matlab-hang-problem</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fred Vanner		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355516</link>

		<dc:creator><![CDATA[Fred Vanner]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 09:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-355516</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355515&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks! That works like a dream! (Why?)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355515">Yair Altman</a>.</p>
<p>Thanks! That works like a dream! (Why?)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355515</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 09:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-355515</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355509&quot;&gt;Fred Vanner&lt;/a&gt;.

I suggest that you add a call to &lt;i&gt;&lt;b&gt;drawnow; pause(0.1);&lt;/b&gt;&lt;/i&gt; after the grid creation and before requesting &lt;code&gt;XGridHandle&lt;/code&gt;:
&lt;pre lang=&#039;matlab&#039; highlight=&#039;6&#039;&gt;
x=linspace(-1,1);
fx=x.^3;
pfx=plot(x,fx);
grid on;
ax=gca;
drawnow; pause(0.1);
xgh=ax.XGridHandle;
xgh.BackMajorEdge.ColorData=cast([0; 20; 20; 200],&#039;uint8&#039;);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355509">Fred Vanner</a>.</p>
<p>I suggest that you add a call to <i><b>drawnow; pause(0.1);</b></i> after the grid creation and before requesting <code>XGridHandle</code>:</p>
<pre lang='matlab' highlight='6'>
x=linspace(-1,1);
fx=x.^3;
pfx=plot(x,fx);
grid on;
ax=gca;
drawnow; pause(0.1);
xgh=ax.XGridHandle;
xgh.BackMajorEdge.ColorData=cast([0; 20; 20; 200],'uint8');
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fred Vanner		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-355509</link>

		<dc:creator><![CDATA[Fred Vanner]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 08:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-355509</guid>

					<description><![CDATA[I&#039;m having problems with XGridHandle (etc.) in scripts / functions (I&#039;ve had no problems from the command line). Example:
&lt;pre lang=&quot;matlab&quot;&gt;
x=linspace(-1,1);
fx=x.^3;
pfx=plot(x,fx);
grid on;
ax=gca;
xgh=ax.XGridHandle;
xgh.BackMajorEdge.ColorData=cast([0; 20; 20; 200],&#039;uint8&#039;);
&lt;/pre&gt;
Running this script (R2014b, 32 bit) I get:
&quot;No appropriate method, property, or field BackMajorEdge for class matlab.graphics.GraphicsPlaceholder.&quot;
If I put a breakpoint after the &quot;grid on&quot; command, and continue from the breakpoint, I get no error (and the grid change works).
This would be really useful if I could persuade it to work reliably. Any ideas?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having problems with XGridHandle (etc.) in scripts / functions (I&#8217;ve had no problems from the command line). Example:</p>
<pre lang="matlab">
x=linspace(-1,1);
fx=x.^3;
pfx=plot(x,fx);
grid on;
ax=gca;
xgh=ax.XGridHandle;
xgh.BackMajorEdge.ColorData=cast([0; 20; 20; 200],'uint8');
</pre>
<p>Running this script (R2014b, 32 bit) I get:<br />
&#8220;No appropriate method, property, or field BackMajorEdge for class matlab.graphics.GraphicsPlaceholder.&#8221;<br />
If I put a breakpoint after the &#8220;grid on&#8221; command, and continue from the breakpoint, I get no error (and the grid change works).<br />
This would be really useful if I could persuade it to work reliably. Any ideas?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: W.T. Door		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-2#comment-348382</link>

		<dc:creator><![CDATA[W.T. Door]]></dc:creator>
		<pubDate>Thu, 23 Apr 2015 20:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5126#comment-348382</guid>

					<description><![CDATA[Yair --

Just wanted to add a comment to let you know that this post was extremely helpful; I was trying to figure out a way to help highlight some differences between surface plots and modifying the Z-axis gridlines worked perfectly.  FWIW, I bought your &quot;Undocumented Matlab&quot; book a couple of years ago and it has proved useful time and again -- thanks for both the book and the blog.  

Regards,
WT]]></description>
			<content:encoded><![CDATA[<p>Yair &#8212;</p>
<p>Just wanted to add a comment to let you know that this post was extremely helpful; I was trying to figure out a way to help highlight some differences between surface plots and modifying the Z-axis gridlines worked perfectly.  FWIW, I bought your &#8220;Undocumented Matlab&#8221; book a couple of years ago and it has proved useful time and again &#8212; thanks for both the book and the blog.  </p>
<p>Regards,<br />
WT</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
