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

Home » Public Forums » archive » Re: imcontour no longer plotting in 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: imcontour no longer plotting in color [message #81019 is a reply to message #81017] Thu, 02 August 2012 18:23 Go to previous messageGo to previous message
Balthasar Indermuehle is currently offline  Balthasar Indermuehle
Messages: 22
Registered: August 2012
Junior Member
Hi David,

Your first message only just came through, perils of usenet I guess...

Indeed running cgLoadCT twice, the second time without the RGB_Table keyword seems to have solved the problem.

If you're up for it, I'd still appreciate you (or anyone else for that matter) having a look over the code I just uploaded. I suspect there are a number of unnecessary calls in there that might be better replaced by some of your latest CG calls? I for instance just saw that I'm using the TVLCT call in the beginning, which serves no purpose any longer?

Many thanks!

- Balt

> I don't use IMCONTOUR, but I notice you are trying to pass
>
> it the colors to use via a PALETTE keyword. I don't have
>
> a PALETTE keyword defined for my IMCONTOUR program, so
>
> unless you have added one, this is probably the source
>
> of the error.
>
>
>
> When you call cgLoadCT, you use the RGB_TABLE keyword
>
> to create the palette. No colors are loaded in the
>
> hardware color table when this keyword is used.
>
>
>
> I would try adding a second cgLoadCT command below
>
> the first (assuming you are creating the palette
>
> for a reason), and remove the RGB_TABLE keyword
>
> on this call.
>
>
>
> Does that make a difference?
>
>
>
> 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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trig plots auto-shifted (?)
Next Topic: Re: Trig plots auto-shifted (?)

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

Current Time: Fri Oct 10 01:40:33 PDT 2025

Total time taken to generate the page: 0.24402 seconds