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

Home » Public Forums » archive » Re: Simple CG Map w/ color
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: Simple CG Map w/ color [message #77171] Fri, 12 August 2011 08:07
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Leslie Moy writes:

> Okay first time posting to this board. Here goes...
>
> I use CG ALL the time now to do simple plots and find getting a clean
> output sooo much nicer than standard IDL, so i thought there should be a
> way to do a simple colored map output with CG. But the examples in the
> book seem to about contours on top of a map, not coloring a spot on the map.
>
> I'd appreciate any help.

Well, first of all, I don't see any Coyote Graphics
routines IN that code! Probably it would work better
if there were a few. :-)

Secondly, you break the first rule of Coyote Graphics,
which is to NEVER load drawing colors at color index
0 or 255.

But, that said, I don't see any reason this code won't
produce the correct colors IF the Z-graphics device
is set up as an 8-bit device using indexed color.
Is that how you have set it up? You could use a
Help, /Device to confirm.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: Error help
Next Topic: Re: Big Horn Sheep Count

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

Current Time: Fri Oct 10 07:59:41 PDT 2025

Total time taken to generate the page: 1.43550 seconds