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

Home » Public Forums » archive » tvim color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
tvim color [message #73569] Fri, 19 November 2010 06:03 Go to next message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Hello,

I want to plot a 2D histogram with tvim with a black and white color
table.
I want the pixels with no data to be plotted in white and pixels with
the most data in black.
To do so, i type:

loadct,0
reverse_ct
tvim,map,/scale,nodata=0.0....

It plots my pixels with the wanted colors but the axis, labels and
titles have disappeared (have been plotted in white i guess).

How to force tvim to plot the axis, titles in black but use the color
table I want for the plot ?

If someone has an idea! :=)
Thanks!
Re: tvim color [message #73701 is a reply to message #73569] Sat, 20 November 2010 10:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> Use TVIMAGE. ;-) (yeah, tvim does some useful stuff automatically,
> but when it comes to dealing with colours, TVIMAGE is more robust)

Changes are coming later today that I think will make
TVImage even more attractive to astronomers. Check
the newsgroup later for an announcement. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: tvim color [message #73705 is a reply to message #73569] Sat, 20 November 2010 05:43 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 19, 9:03 am, bing999 <thibaultga...@gmail.com> wrote:
> Hello,
>
> I want to plot a 2D histogram with tvim with a black and white color
> table.
> I want the pixels with no data to be plotted in white and pixels with
> the most data in black.
> To do so, i type:
>
> loadct,0
> reverse_ct
> tvim,map,/scale,nodata=0.0....
>
> It plots my pixels with the wanted colors but the axis, labels and
> titles have disappeared (have been plotted in white i guess).
>
> How to force tvim to plot the axis, titles in black but use the color
> table I want for the plot ?
>
> If someone has an idea! :=)
> Thanks!

Use TVIMAGE. ;-) (yeah, tvim does some useful stuff automatically,
but when it comes to dealing with colours, TVIMAGE is more robust)

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl bimodal distribution
Next Topic: Correct Image Resizing -- New Coyote Program

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

Current Time: Fri Oct 10 15:08:42 PDT 2025

Total time taken to generate the page: 1.75884 seconds