comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: cgcolor, cgplot, and /WINDOW
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgcolor, cgplot, and /WINDOW [message #75511 is a reply to message #75510] Wed, 23 March 2011 16:49 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/23/11 6:32 AM, David Fanning wrote:
> Object graphics *forces* you to pass unambiguous colors
> by requiring three-element arrays. But, this is so
> "unnatural" to many users, that I think it has delayed
> the acceptance of object graphics routines. I happen to
> think color names are the "natural" way to specify
> colors, but I am willing to live with some ambiguity
> if it means more users will migrate to using better
> and more useful software.

You can pass either a single index or a 3-element array for a color in
object graphics. If you pass a single index, then the object uses its
PALETTE property to lookup the actual color. Of course, now in IDL 8.0,
you can say !color.red.

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: lat/lon projection
Next Topic: AVHRR Calibration and Georeferencing

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:48:40 PDT 2025

Total time taken to generate the page: 0.00421 seconds