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

Home » Public Forums » archive » reversing background color in maps
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: reversing background color in maps [message #14426 is a reply to message #14332] Mon, 22 February 1999 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
T Bowers <tbowers@nrlssc.navy.mil> wrote:
> ...I need to reverse this and have a white background.

> tvlct, 255,255,255,0
> tvlct, 0,0,0,1
> WHITE = 0
> BLACK = 1

> When I run it like this, I do get a white background but the box labels
> (from map_grid,/box) are gone and I get the lat lon grid lines in black
> even tho I didn't want grid lines at all (/grid not set in map_set).

As I understand it, IDL plots background using index !p.background
and foreground with !p.color. These are normally 0 and 255, and are
normally black and white respectively. If you just make index 0 into
white, then !p.background and !p.color point to the same colour.

So: I think you can just interchange !p.background and !p.color, or if
you want to follow your scheme, do tvlct,0,0,0,!p.color & black=!p.color

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
[Message index]
 
Read Message
Read Message
Previous Topic: IDL and Image Segmentation
Next Topic: Realigning command in IDL.

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

Current Time: Sat Oct 11 09:13:25 PDT 2025

Total time taken to generate the page: 6.63963 seconds