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 #81027 is a reply to message #81026] Thu, 02 August 2012 05:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Balthasar Indermuehle writes:

> I'm in what looks to be a veritable mess... my calls to imcontour to plot a FITS image no longer work with colour palettes, it just draws b/w. The legend however drawn with cgColorbar appear nice and normal in colour on the same piece of postscript, so it's obviously not a device problem.
>
> This is running from a piece of code that worked about a year ago, apart from updating from 10.6 to 10.7 (OS X obviously) there have been no changes to the system I'm aware of, certainly not in the IDL realm.
>
> Anyone have any clue where to even start looking!?

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: Thu Oct 09 23:35:05 PDT 2025

Total time taken to generate the page: 1.04021 seconds