<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237889</link>
    <title>MATLAB Central Newsreader - Legend for Pcolor</title>
    <description>Feed for thread: Legend for Pcolor</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>Tue, 21 Oct 2008 02:06:02 -0400</pubDate>
      <title>Legend for Pcolor</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237889#606505</link>
      <author>Nathan </author>
      <description>I have been using pcolor to plot my data which has already been compressed to discrete values normally ranging from 0-6.  The commands are just&lt;br&gt;
&lt;br&gt;
pcolor(mymatrix)  %with discrete values ranging from 0 to 6&lt;br&gt;
colormap(grey(7))&lt;br&gt;
&lt;br&gt;
I would like to have a legend with entries for each discrete value and have had no luck with the following:&lt;br&gt;
&lt;br&gt;
legend('LabelFor0','LabelFor1','LabelFor2','LabelFor3'....&lt;br&gt;
&lt;br&gt;
Does anyone know how to get a legend like that to work with pcolor?&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 13:14:27 -0400</pubDate>
      <title>Re: Legend for Pcolor</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237889#606602</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Nathan &quot; &amp;lt;natepatterson9@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gdjdea$5hv$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I have been using pcolor to plot my data which has already been compressed &lt;br&gt;
&amp;gt;to discrete values normally ranging from 0-6.  The commands are just&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; pcolor(mymatrix)  %with discrete values ranging from 0 to 6&lt;br&gt;
&amp;gt; colormap(grey(7))&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to have a legend with entries for each discrete value and &lt;br&gt;
&amp;gt; have had no luck with the following:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; legend('LabelFor0','LabelFor1','LabelFor2','LabelFor3'....&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Does anyone know how to get a legend like that to work with pcolor?&lt;br&gt;
&lt;br&gt;
What you're describing sounds more like a COLORBAR than a legend.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Tue, 21 Oct 2008 17:32:02 -0400</pubDate>
      <title>Re: Legend for Pcolor</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237889#606661</link>
      <author>Nathan </author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gdkkjj$p40$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Nathan &quot; &amp;lt;natepatterson9@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gdjdea$5hv$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I have been using pcolor to plot my data which has already been compressed &lt;br&gt;
&amp;gt; &amp;gt;to discrete values normally ranging from 0-6.  The commands are just&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; pcolor(mymatrix)  %with discrete values ranging from 0 to 6&lt;br&gt;
&amp;gt; &amp;gt; colormap(grey(7))&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I would like to have a legend with entries for each discrete value and &lt;br&gt;
&amp;gt; &amp;gt; have had no luck with the following:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; legend('LabelFor0','LabelFor1','LabelFor2','LabelFor3'....&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Does anyone know how to get a legend like that to work with pcolor?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What you're describing sounds more like a COLORBAR than a legend.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank you, it's exactly what I was looking for.</description>
    </item>
  </channel>
</rss>

