background color for draw widget [message #60741] |
Fri, 06 June 2008 07:16  |
cgoethel
Messages: 20 Registered: April 2008
|
Junior Member |
|
|
Hi All, When I create a simple draw widget, the background color
defaults to black. How do I change that to a light grey? Thanks for
your help! Cindy
|
|
|
|
Re: Background color [message #64279 is a reply to message #60741] |
Wed, 17 December 2008 07:04   |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Wed, 17 Dec 2008 06:29:13 -0800 (PST), nakisa
<nakisa.nooraee@gmail.com> wrote:
> Hi.
> I have an strange problem today, I use IDL.7 under linux(ubuntu) .
> I try to change the background color. with below command I create the
> window.
>
> window,xsize=1400,ysize=1400
>
> TVLCT,150,50,120,0
>
> plot,x,y,/psym,yrange=[5.6,5.75],xrange=[9.5,11.8],charsize= 3 ,title='
> none ',background=180 /NoData
>
>
> I use both commands(TVLCT and background) and change the numbers ,but
> still the window is in black !
> but when I write the TVLCT command in the terminal and run the file ,
> the color changes!!!!!!
> how can I control the background color from inside of pro not
> terminal ?!!
> best,nakisa
What happens when you use ERASE?
|
|
|
Re: Background color [message #64368 is a reply to message #64278] |
Thu, 18 December 2008 01:18  |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Wed, 17 Dec 2008 07:11:57 -0800 (PST), nakisa
<nakisa.nooraee@gmail.com> wrote:
> Hi , I didn't use ERASE !
I know. But does it help when you do? ERASE sets the background color
to the default color (=!P.BACKGROUND) or to the one you specify (which
is an 8bit color index or a 24bit color value, depending on the
DECOMPOSED state of your device).
|
|
|