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

Home » Public Forums » archive » Re: switching PS device from color to b/w?
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: switching PS device from color to b/w? [message #31251] Wed, 26 June 2002 10:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Liam E. Gumley (Liam.Gumley@ssec.wisc.edu) writes:

> To set the background color, my IMDISP procedure uses code similar to
> the following:
>
> x = [-0.01, 1.01, 1.01, -0.01, -0.01]
> y = [-0.01, -0.01, 1.01, 1.01, -0.01]
> polyfill, x, y, /normal, color=background
>
> where the variable "background" is an index in the color table. This is
> the only way I know of to reliably set the background color on all IDL
> direct graphics devices.

I think this is the only way. It is what I do
in MPI_PLOT too.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: changing editors?
Next Topic: how to debug floating error

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

Current Time: Wed Oct 08 17:14:24 PDT 2025

Total time taken to generate the page: 0.00392 seconds