"David Doria" <daviddoria@gmail.com> wrote in message
news:fducta$hm$1@fred.mathworks.com...
>I use this:
>
> map = colormap;
>
> but a blank figure is created. Is there a way to stop that?
The COLORMAP function, called with that syntax, retrieves the Colormap
property of the current figure. If you do not have a figure open, COLORMAP
will create one for you and return that figure's Colormap property. If you
don't want it to do this, make sure you have a figure open when you call
COLORMAP. Also, you should make sure that the HandleVisible property of
your figure is set so that you can access the handle of the current figure
from wherever you're calling COLORMAP.
I see. I also didn't realize the "maps" were actually
functions, so I can do
a=jet;
and then access the colors in order through a(N, :)
Thanks for the help!
David
"Steven Lord" <slord@mathworks.com> wrote in message
<fduvee$ll6$1@fred.mathworks.com>...
>
> "David Doria" <daviddoria@gmail.com> wrote in message
> news:fducta$hm$1@fred.mathworks.com...
> >I use this:
> >
> > map = colormap;
> >
> > but a blank figure is created. Is there a way to stop that?
>
> The COLORMAP function, called with that syntax, retrieves
the Colormap
> property of the current figure. If you do not have a
figure open, COLORMAP
> will create one for you and return that figure's Colormap
property. If you
> don't want it to do this, make sure you have a figure open
when you call
> COLORMAP. Also, you should make sure that the
HandleVisible property of
> your figure is set so that you can access the handle of
the current figure
> from wherever you're calling COLORMAP.
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#HandleVisibility
>
> --
> Steve Lord
> slord@mathworks.com
>
>
Tags for this Thread
Add a New Tag:
Separated by commas
Ex.: root locus, bode
What are tags?
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.