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

Home » Public Forums » archive » Windows IDL DLM with Cygwin
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: window [message #46090 is a reply to message #44720] Wed, 02 November 2005 15:45 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Wed, 2 Nov 2005, ChiChiRuiz@gmail.com wrote:
> Hi, I was wondering how to change the default when calling
> "window". I'd like to have a white background with colored plots,
> rather than the default black background with white-color plots.

You can set !p.background to the index in the CT you want. Not sure
about foreground. However, I leave those alone and customize the CT
itself like this:

TVLCT, r,g,b, /GET
r[0] = ( g[0] = ( b[0] = 255 ) )
r[255] = ( g[255] = ( b[255] = 0 ) )
TVLCT, r,g,b

> Besides, without calling "loadct", I can specify color=250 for a
> red color plot, how do i get a yellow/blue/green color by simply
> using color=(a number)? Thanks for your help.

I cannot replicate this. For me the default CT is grayscale with
index 0 as black and 255 as white so color=250 is almost-white.
Perhaps you are running a site-wide startup file that is
initializing a CT for you with red at index 250?

If you want yellow/blue/green color you need to
a) make sure they are in your colortable
b) figure out where they are
c) then use the color=(a number) syntax to access them.

-k.
[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
Previous Topic: Dilating at image boundaries
Next Topic: Re: Error in Object

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

Current Time: Fri Oct 10 03:13:51 PDT 2025

Total time taken to generate the page: 2.00073 seconds