<?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 4 &#8211; additional properties	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-axes-part-4-additional-properties</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Sun, 15 Nov 2015 15:33:12 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: RayInos		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-361624</link>

		<dc:creator><![CDATA[RayInos]]></dc:creator>
		<pubDate>Sun, 15 Nov 2015 15:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5190#comment-361624</guid>

					<description><![CDATA[Hey everybody!

I got a little update on this one, fixing the select3d for Matlab &#062;= R14b.

Replacing
&lt;pre lang=&quot;matlab&quot;&gt; 
% Transform vertices from data space to pixel space
xvert = local_Data2PixelTransform(ax,vert)&#039;;
xcp = local_Data2PixelTransform(ax,cp&#039;)&#039;;
&lt;/pre&gt;
with
&lt;pre lang=&quot;matlab&quot;&gt; 
% Transform vertices from data space to pixel space (fixed for Matlab R2014b+)
if ~graphicsversion(get(ax,&#039;Parent&#039;),&#039;handlegraphics&#039;)
  xvert = specgraphhelper(&#039;convertDataSpaceCoordsToViewerCoords&#039;, axchild, vert&#039;);
  xcp   = specgraphhelper(&#039;convertDataSpaceCoordsToViewerCoords&#039;, ax, cp);
else
  xvert = local_Data2PixelTransform(ax,vert)&#039;;
  xcp   = local_Data2PixelTransform(ax,cp&#039;)&#039;;
end
&lt;/pre&gt;
should work perfectly all right (tested with linear axes and DataAspectRatio=1).

One might change the condition
&lt;pre lang=&quot;matlab&quot;&gt; 
  ~graphicsversion(get(ax,&#039;Parent&#039;),&#039;handlegraphics&#039;) 
&lt;/pre&gt;
to something more elegant. This code line assumes the axes object ax is direct child to the figure (which fits in my case). An alternative might be checking the matlab version with
&lt;pre lang=&quot;matlab&quot;&gt; 
  ~verLessThan(&#039;matlab&#039;,&#039;8.4&#039;)
&lt;/pre&gt;
, since the graphics update came in 8.4 (R14b).

Note, that the transposition of vert and cp in the arguments of specgraphhelper(...) is crucial to the result. Transposing one of them leads to wrong results.

Hope it helps,
Ray]]></description>
			<content:encoded><![CDATA[<p>Hey everybody!</p>
<p>I got a little update on this one, fixing the select3d for Matlab &gt;= R14b.</p>
<p>Replacing</p>
<pre lang="matlab"> 
% Transform vertices from data space to pixel space
xvert = local_Data2PixelTransform(ax,vert)';
xcp = local_Data2PixelTransform(ax,cp')';
</pre>
<p>with</p>
<pre lang="matlab"> 
% Transform vertices from data space to pixel space (fixed for Matlab R2014b+)
if ~graphicsversion(get(ax,'Parent'),'handlegraphics')
  xvert = specgraphhelper('convertDataSpaceCoordsToViewerCoords', axchild, vert');
  xcp   = specgraphhelper('convertDataSpaceCoordsToViewerCoords', ax, cp);
else
  xvert = local_Data2PixelTransform(ax,vert)';
  xcp   = local_Data2PixelTransform(ax,cp')';
end
</pre>
<p>should work perfectly all right (tested with linear axes and DataAspectRatio=1).</p>
<p>One might change the condition</p>
<pre lang="matlab"> 
  ~graphicsversion(get(ax,'Parent'),'handlegraphics') 
</pre>
<p>to something more elegant. This code line assumes the axes object ax is direct child to the figure (which fits in my case). An alternative might be checking the matlab version with</p>
<pre lang="matlab"> 
  ~verLessThan('matlab','8.4')
</pre>
<p>, since the graphics update came in 8.4 (R14b).</p>
<p>Note, that the transposition of vert and cp in the arguments of specgraphhelper(&#8230;) is crucial to the result. Transposing one of them leads to wrong results.</p>
<p>Hope it helps,<br />
Ray</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Konstantin Alexeev		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-348935</link>

		<dc:creator><![CDATA[Konstantin Alexeev]]></dc:creator>
		<pubDate>Thu, 07 May 2015 12:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5190#comment-348935</guid>

					<description><![CDATA[Hello Yair, 

I used the select3d tool from matlab file exchange to find, where the mouse clicked on 3d, surface. Since matlab 2014, the select3d function seems to don&#039;t work anymore because, &quot;x_RenderTransform&quot; and other propertiese were removed.

However, now the matlab provides the coordinates of the section of mouse point and the surface as the second parameter of the surface callback.

K&#062;&#062; varargin{2}

ans = 

  Hit with properties:

               Button: 1
    IntersectionPoint: [20.8219 16.8589 20.7370]
               Source: [1x1 Surface]
            EventName: &#039;Hit&#039;]]></description>
			<content:encoded><![CDATA[<p>Hello Yair, </p>
<p>I used the select3d tool from matlab file exchange to find, where the mouse clicked on 3d, surface. Since matlab 2014, the select3d function seems to don&#8217;t work anymore because, &#8220;x_RenderTransform&#8221; and other propertiese were removed.</p>
<p>However, now the matlab provides the coordinates of the section of mouse point and the surface as the second parameter of the surface callback.</p>
<p>K&gt;&gt; varargin{2}</p>
<p>ans = </p>
<p>  Hit with properties:</p>
<p>               Button: 1<br />
    IntersectionPoint: [20.8219 16.8589 20.7370]<br />
               Source: [1&#215;1 Surface]<br />
            EventName: &#8216;Hit&#8217;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-348927</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 07 May 2015 07:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5190#comment-348927</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-348923&quot;&gt;Sher Raza&lt;/a&gt;.

@Sher - have you seen my recent post on &lt;a href=&quot;http://undocumentedmatlab.com/blog/undocumented-view-transformation-matrix&quot; rel=&quot;nofollow&quot;&gt;view transformations&lt;/a&gt; (and the reader comments on it)?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-348923">Sher Raza</a>.</p>
<p>@Sher &#8211; have you seen my recent post on <a href="http://undocumentedmatlab.com/blog/undocumented-view-transformation-matrix" rel="nofollow">view transformations</a> (and the reader comments on it)?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sher Raza		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-348923</link>

		<dc:creator><![CDATA[Sher Raza]]></dc:creator>
		<pubDate>Thu, 07 May 2015 06:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5190#comment-348923</guid>

					<description><![CDATA[Has anyone found an alternative to the x_RenderOffset, x_RenderScale, x_RenderTransform axes properties? I have been working for a long time and have not found a workaround. 

Sher]]></description>
			<content:encoded><![CDATA[<p>Has anyone found an alternative to the x_RenderOffset, x_RenderScale, x_RenderTransform axes properties? I have been working for a long time and have not found a workaround. </p>
<p>Sher</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jill B		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-axes-part-4-additional-properties#comment-345691</link>

		<dc:creator><![CDATA[Jill B]]></dc:creator>
		<pubDate>Tue, 17 Feb 2015 02:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=5190#comment-345691</guid>

					<description><![CDATA[Hi Yair- 

Great information. I&#039;ve been using some code that accessed x_RenderTransform, x_RenderOffset, and x_RenderScale undocumented properties in HG1, that &quot;broke&quot; in HG2.  I&#039;ve been in search of a solution, and your tips in your blog are the closest I&#039;ve come. I&#039;m ever hopeful that a workaround will arise, but I&#039;m not experienced enough to take it myself.

Thanks for the blog,
Jill]]></description>
			<content:encoded><![CDATA[<p>Hi Yair- </p>
<p>Great information. I&#8217;ve been using some code that accessed x_RenderTransform, x_RenderOffset, and x_RenderScale undocumented properties in HG1, that &#8220;broke&#8221; in HG2.  I&#8217;ve been in search of a solution, and your tips in your blog are the closest I&#8217;ve come. I&#8217;m ever hopeful that a workaround will arise, but I&#8217;m not experienced enough to take it myself.</p>
<p>Thanks for the blog,<br />
Jill</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
