<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157062</link>
    <title>MATLAB Central Newsreader - get colormap without generating a figure?</title>
    <description>Feed for thread: get colormap without generating a figure?</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, 02 Oct 2007 21:23:54 -0400</pubDate>
      <title>get colormap without generating a figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157062#394863</link>
      <author>David Doria</author>
      <description>I use this:&lt;br&gt;
&lt;br&gt;
map = colormap;&lt;br&gt;
&lt;br&gt;
but a blank figure is created.  Is there a way to stop that?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
David</description>
    </item>
    <item>
      <pubDate>Wed, 03 Oct 2007 02:40:13 -0400</pubDate>
      <title>Re: get colormap without generating a figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157062#394877</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:fducta$hm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I use this:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; map = colormap;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but a blank figure is created.  Is there a way to stop that?&lt;br&gt;
&lt;br&gt;
The COLORMAP function, called with that syntax, retrieves the Colormap &lt;br&gt;
property of the current figure.  If you do not have a figure open, COLORMAP &lt;br&gt;
will create one for you and return that figure's Colormap property.  If you &lt;br&gt;
don't want it to do this, make sure you have a figure open when you call &lt;br&gt;
COLORMAP.  Also, you should make sure that the HandleVisible property of &lt;br&gt;
your figure is set so that you can access the handle of the current figure &lt;br&gt;
from wherever you're calling COLORMAP.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#HandleVisibility&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#HandleVisibility&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Wed, 03 Oct 2007 12:35:41 -0400</pubDate>
      <title>Re: get colormap without generating a figure?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/157062#394932</link>
      <author>David Doria</author>
      <description>I see.  I also didn't realize the &quot;maps&quot; were actually&lt;br&gt;
functions, so I can do&lt;br&gt;
&lt;br&gt;
a=jet; &lt;br&gt;
&lt;br&gt;
and then access the colors in order through a(N, :)&lt;br&gt;
&lt;br&gt;
Thanks for the help!&lt;br&gt;
&lt;br&gt;
David&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fduvee$ll6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:fducta$hm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I use this:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; map = colormap;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; but a blank figure is created.  Is there a way to stop that?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The COLORMAP function, called with that syntax, retrieves&lt;br&gt;
the Colormap &lt;br&gt;
&amp;gt; property of the current figure.  If you do not have a&lt;br&gt;
figure open, COLORMAP &lt;br&gt;
&amp;gt; will create one for you and return that figure's Colormap&lt;br&gt;
property.  If you &lt;br&gt;
&amp;gt; don't want it to do this, make sure you have a figure open&lt;br&gt;
when you call &lt;br&gt;
&amp;gt; COLORMAP.  Also, you should make sure that the&lt;br&gt;
HandleVisible property of &lt;br&gt;
&amp;gt; your figure is set so that you can access the handle of&lt;br&gt;
the current figure &lt;br&gt;
&amp;gt; from wherever you're calling COLORMAP.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#HandleVisibility&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#HandleVisibility&lt;/a&gt;&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;
&amp;gt; </description>
    </item>
  </channel>
</rss>

