<?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 contour plots part 2	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-contour-plots-part-2</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 10 Oct 2019 07:29:28 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Indira X		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-502483</link>

		<dc:creator><![CDATA[Indira X]]></dc:creator>
		<pubDate>Thu, 10 Oct 2019 07:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-502483</guid>

					<description><![CDATA[Hello,
I use &quot;surf&quot; with x and y as vectors, and z as matrix. I want to move the contours at 59.7 in z, so I wrote this:
&lt;pre lang=&quot;matlab&quot;&gt;
handles = meshc(z);
hContour = handles(2);
hContour.ContourZLevel = 59.5;
&lt;/pre&gt;
I don&#039;t see the contours, instead I see a small &quot;bar&quot; along z axis.

May you please give me a hint?

Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
I use &#8220;surf&#8221; with x and y as vectors, and z as matrix. I want to move the contours at 59.7 in z, so I wrote this:</p>
<pre lang="matlab">
handles = meshc(z);
hContour = handles(2);
hContour.ContourZLevel = 59.5;
</pre>
<p>I don&#8217;t see the contours, instead I see a small &#8220;bar&#8221; along z axis.</p>
<p>May you please give me a hint?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-410285</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 15 Jul 2017 21:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-410285</guid>

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

@Ricardo - I don&#039;t quite understand what you need. In general, if you want to change the action of the slider then simply update its callback function:
&lt;pre lang=&quot;matlab&quot;&gt;cbFunc = @(hSlider,evtData) set(hContour,&#039;ContourZLevel&#039;,hSlider.getValue/100*zrange+zmin);&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-408770">RicardoMBorges</a>.</p>
<p>@Ricardo &#8211; I don&#8217;t quite understand what you need. In general, if you want to change the action of the slider then simply update its callback function:</p>
<pre lang="matlab">cbFunc = @(hSlider,evtData) set(hContour,'ContourZLevel',hSlider.getValue/100*zrange+zmin);</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RicardoMBorges		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-408770</link>

		<dc:creator><![CDATA[RicardoMBorges]]></dc:creator>
		<pubDate>Mon, 19 Jun 2017 12:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-408770</guid>

					<description><![CDATA[Hello. Thanks for this.
I&#039;m looking for a way to add this scroll bar but using Level as action. I want to mess around with the cutting level of a contour plot interactively.
Thanks for any help.]]></description>
			<content:encoded><![CDATA[<p>Hello. Thanks for this.<br />
I&#8217;m looking for a way to add this scroll bar but using Level as action. I want to mess around with the cutting level of a contour plot interactively.<br />
Thanks for any help.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-374204</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 11 Apr 2016 20:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-374204</guid>

					<description><![CDATA[I displace the contour plane using the documented feature hgtransform.
&lt;pre lang=&quot;matlab&quot;&gt;
% get empty identity transform
hT = hgtransform; 
% create transform matrix for z-distance zDisplace
hT.Matrix = makehgtform(&#039;translate&#039;,[0 0 zDisplace]); 
% Transform Parent
hContour.Parent = hT;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I displace the contour plane using the documented feature hgtransform.</p>
<pre lang="matlab">
% get empty identity transform
hT = hgtransform; 
% create transform matrix for z-distance zDisplace
hT.Matrix = makehgtform('translate',[0 0 zDisplace]); 
% Transform Parent
hContour.Parent = hT;
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-372955</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 27 Mar 2016 15:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-372955</guid>

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

@Kerem - you did not copy properly. It is &lt;code&gt;hContour&lt;/code&gt;, not &lt;code&gt;hCo&lt;b&gt;u&lt;/b&gt;ntour&lt;/code&gt;. As to why the Parent field does not exist, perhaps you are using an old Matlab version (HG1, R2014a or older).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-372925">Kerem</a>.</p>
<p>@Kerem &#8211; you did not copy properly. It is <code>hContour</code>, not <code>hCo<b>u</b>ntour</code>. As to why the Parent field does not exist, perhaps you are using an old Matlab version (HG1, R2014a or older).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kerem		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots-part-2#comment-372925</link>

		<dc:creator><![CDATA[Kerem]]></dc:creator>
		<pubDate>Sun, 27 Mar 2016 08:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6304#comment-372925</guid>

					<description><![CDATA[Hello,
Why  do I get an error 
&quot;??? Reference to non-existent field &#039;Parent&#039;.&quot; hCountour is defined in the first code part you gave. 
I simply copy and past two fields.]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
Why  do I get an error<br />
&#8220;??? Reference to non-existent field &#8216;Parent&#8217;.&#8221; hCountour is defined in the first code part you gave.<br />
I simply copy and past two fields.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
