<?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	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-contour-plots/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-contour-plots?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-contour-plots</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 02 Mar 2021 10:17:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: JCFL		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-510064</link>

		<dc:creator><![CDATA[JCFL]]></dc:creator>
		<pubDate>Tue, 02 Mar 2021 10:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-510064</guid>

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

I was trying the above trick to change the transparency of contour lines and wondering why not all the lines have changed --- then I found your post. Thanks and your post saved me.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-474219">Austin Spencer</a>.</p>
<p>I was trying the above trick to change the transparency of contour lines and wondering why not all the lines have changed &#8212; then I found your post. Thanks and your post saved me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: turhv		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-509636</link>

		<dc:creator><![CDATA[turhv]]></dc:creator>
		<pubDate>Thu, 31 Dec 2020 17:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-509636</guid>

					<description><![CDATA[very nice! work perfectly to me in MATLAB 2019a.
thanks!!!]]></description>
			<content:encoded><![CDATA[<p>very nice! work perfectly to me in MATLAB 2019a.<br />
thanks!!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Austin Spencer		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-474219</link>

		<dc:creator><![CDATA[Austin Spencer]]></dc:creator>
		<pubDate>Thu, 11 Apr 2019 14:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-474219</guid>

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

An update/correction after some additional exploration:  &lt;b&gt;EdgePrims&lt;/b&gt; is still used for contour lines that do not form closed loops, as is the case when a contour line intersects the edge of the dataset.  Therefore, in order to set the properties of all contours consistently, you must loop over all &lt;b&gt;EdgePrims&lt;/b&gt; and &lt;b&gt;EdgeLoopPrims&lt;/b&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-473847">Austin Spencer</a>.</p>
<p>An update/correction after some additional exploration:  <b>EdgePrims</b> is still used for contour lines that do not form closed loops, as is the case when a contour line intersects the edge of the dataset.  Therefore, in order to set the properties of all contours consistently, you must loop over all <b>EdgePrims</b> and <b>EdgeLoopPrims</b>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Austin Spencer		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-473847</link>

		<dc:creator><![CDATA[Austin Spencer]]></dc:creator>
		<pubDate>Tue, 09 Apr 2019 18:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-473847</guid>

					<description><![CDATA[As of at least MATLAB R2018b, the names of some undocumented contour properties have changed.  The edges are now listed under &lt;b&gt;EdgeLoopPrims&lt;/b&gt; and are of type &lt;b&gt;LineLoop&lt;/b&gt;.  &lt;b&gt;EdgePrims&lt;/b&gt; is still present, but is empty.  &lt;b&gt;LineLoop&lt;/b&gt; has &lt;b&gt;ColorData&lt;/b&gt; and &lt;b&gt;ColorType&lt;/b&gt; properties, so the same customization is still possible.]]></description>
			<content:encoded><![CDATA[<p>As of at least MATLAB R2018b, the names of some undocumented contour properties have changed.  The edges are now listed under <b>EdgeLoopPrims</b> and are of type <b>LineLoop</b>.  <b>EdgePrims</b> is still present, but is empty.  <b>LineLoop</b> has <b>ColorData</b> and <b>ColorType</b> properties, so the same customization is still possible.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-382762</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 11 Jul 2016 16:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-382762</guid>

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

@Chunyu - when you save the figure, many of the undocumented customizations are reset by Matlab. 

If you are saving into a *.fig file format, then you can add your customizations to the figure&#039;s &lt;b&gt;CreateFcn&lt;/b&gt; callback (see &lt;a href=&quot;http://undocumentedmatlab.com/blog/figure-toolbar-components#comment-13890&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://undocumentedmatlab.com/blog/axes-looseinset-property#comment-327641&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;).

If you are saving to EPS, PDF or some image format then try using the &lt;a href=&quot;http://undocumentedmatlab.com/blog/export_fig&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;export_fig&lt;/a&gt; or &lt;a href=&quot;http://undocumentedmatlab.com/blog/screencapture-utility&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ScreenCapture&lt;/a&gt; utilities.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-382757">Chunyu Liu</a>.</p>
<p>@Chunyu &#8211; when you save the figure, many of the undocumented customizations are reset by Matlab. </p>
<p>If you are saving into a *.fig file format, then you can add your customizations to the figure&#8217;s <b>CreateFcn</b> callback (see <a href="http://undocumentedmatlab.com/blog/figure-toolbar-components#comment-13890" rel="nofollow">here</a> and <a href="http://undocumentedmatlab.com/blog/axes-looseinset-property#comment-327641" rel="nofollow">here</a>).</p>
<p>If you are saving to EPS, PDF or some image format then try using the <a href="http://undocumentedmatlab.com/blog/export_fig" target="_blank" rel="nofollow">export_fig</a> or <a href="http://undocumentedmatlab.com/blog/screencapture-utility" target="_blank" rel="nofollow">ScreenCapture</a> utilities.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chunyu Liu		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-382757</link>

		<dc:creator><![CDATA[Chunyu Liu]]></dc:creator>
		<pubDate>Mon, 11 Jul 2016 15:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-382757</guid>

					<description><![CDATA[Hi, 
Thank you so much for your fruitful share about this. 
But I have a problem with saving the figure. 
For example, I want to change face color for different contour level. 
Once I change it, It show up immediately. However, When I save the figure, the changing goes away. 
It just save the original defaulted color.]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Thank you so much for your fruitful share about this.<br />
But I have a problem with saving the figure.<br />
For example, I want to change face color for different contour level.<br />
Once I change it, It show up immediately. However, When I save the figure, the changing goes away.<br />
It just save the original defaulted color.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alban Flachot		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-379620</link>

		<dc:creator><![CDATA[Alban Flachot]]></dc:creator>
		<pubDate>Wed, 08 Jun 2016 14:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-379620</guid>

					<description><![CDATA[Hello !

Thank you very much for sharing all this. I may have still a related problem I hope you could help me solve... 

I have a mountain-like 3D surface plot and a value as a treshold. When I cut the 3D plot a the treshold level using contourf, it plots separeted surfaces.
For illustration, here is a simple example:
&lt;pre lang=&quot;matlab&quot;&gt;
z = peaks(20);
z = z/max(z(:));
[c,h] = contourf(z,[0.4 1]);
&lt;/pre&gt;

gives a figure with 3 delimited areas. I would like to display these areas in different colors, say yellow, green and blue. This seemed possible in the previous versions of matlab using, h.Children, but I can&#039;t see how I could obtain the same result now that internal patches are not defined anymore. Do you perhaps know the answer ?

I am sorry if this is trivial with all the pieces of information you shared already, I am a bit new to matlab and still could not figure this thing out.

Thanks in advance !]]></description>
			<content:encoded><![CDATA[<p>Hello !</p>
<p>Thank you very much for sharing all this. I may have still a related problem I hope you could help me solve&#8230; </p>
<p>I have a mountain-like 3D surface plot and a value as a treshold. When I cut the 3D plot a the treshold level using contourf, it plots separeted surfaces.<br />
For illustration, here is a simple example:</p>
<pre lang="matlab">
z = peaks(20);
z = z/max(z(:));
[c,h] = contourf(z,[0.4 1]);
</pre>
<p>gives a figure with 3 delimited areas. I would like to display these areas in different colors, say yellow, green and blue. This seemed possible in the previous versions of matlab using, h.Children, but I can&#8217;t see how I could obtain the same result now that internal patches are not defined anymore. Do you perhaps know the answer ?</p>
<p>I am sorry if this is trivial with all the pieces of information you shared already, I am a bit new to matlab and still could not figure this thing out.</p>
<p>Thanks in advance !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-364346</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 19 Dec 2015 21:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-364346</guid>

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

@Diaa - as the post explains, you have direct access to all the separate contour labels and lines - you can hide/delete those lines and labels which your program&#039;s logic decides should not be displayed.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-364343">Diaa Abidou</a>.</p>
<p>@Diaa &#8211; as the post explains, you have direct access to all the separate contour labels and lines &#8211; you can hide/delete those lines and labels which your program&#8217;s logic decides should not be displayed.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Diaa Abidou		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-364343</link>

		<dc:creator><![CDATA[Diaa Abidou]]></dc:creator>
		<pubDate>Sat, 19 Dec 2015 20:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-364343</guid>

					<description><![CDATA[Hello,

Thanks for sharing this useful piece of information.

However, if I have a filled-contour plot and I would like to hide certain level of some value. For example, to hide levels of temperature equal to or greater than some upper limit for better demonstration. How can I do that ?

Many thanks]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for sharing this useful piece of information.</p>
<p>However, if I have a filled-contour plot and I would like to hide certain level of some value. For example, to hide levels of temperature equal to or greater than some upper limit for better demonstration. How can I do that ?</p>
<p>Many thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-362505</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 25 Nov 2015 12:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6075#comment-362505</guid>

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

Thanks - I completely forgot about this alternative. There are many ways to skin a cat...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-contour-plots#comment-362504">Will</a>.</p>
<p>Thanks &#8211; I completely forgot about this alternative. There are many ways to skin a cat&#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
