Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: get colormap without generating a figure?
Date: Tue, 2 Oct 2007 22:40:13 -0400
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <fduvee$ll6$1@fred.mathworks.com>
References: <fducta$hm$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1191379214 22182 144.212.105.187 (3 Oct 2007 02:40:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 3 Oct 2007 02:40:14 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
Xref: news.mathworks.com comp.soft-sys.matlab:431100




"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