tvim color [message #73569] |
Fri, 19 November 2010 06:03  |
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  |
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  |
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.
|
|
|