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

Home » Public Forums » archive » color table
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: Color table [message #58180 is a reply to message #8601] Mon, 21 January 2008 04:35 Go to previous messageGo to previous message
WRC2008 is currently offline  WRC2008
Messages: 14
Registered: September 2007
Junior Member
me....again...

Everything works out fine for the blue-white-red, even the background
color and axis colors, as the colortable.

BUT, I am also working with the blue-red color table, defined as
follows:


steps = 256
scaleFactor = FINDGEN(steps) / (steps - 1)
;color scheme by Fanning to go from blue to red
tvlct,red,green,blue,/get
;Red vector: 0 -> 255
red = 0 + (255 - 0) * scaleFactor
; Green vector: 0 -> 0
green= REPLICATE(0, steps)
; Blue vector: 255 -> 0
blue = 255 + (0 - 255) * scaleFactor
TVLCT, red, green, blue
DEVICE, RETAIN=2, DECOMPOSED=0
Window, Xsize=steps,Ysize=40, Title='Color Table'
TV, bindgen(steps) # replicate(1B,40)



This is also working, fine, but again, my background went to blue, as
do all the symbols, axes and text in the plot. I would like to change
background (outside of the plot, but in the window) into white, and
the rest in black. How can this be done? Just changing to another
colorvalue e.g. 0 to 255, of course doesn't change with this blue-red
color table...

Thank you!!!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Plotting a compass
Next Topic: Using self reference in WHERE statement?

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

Current Time: Thu Oct 09 23:55:59 PDT 2025

Total time taken to generate the page: 0.72341 seconds