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

Home » Public Forums » archive » PV-Wave Postscript question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
PV-Wave Postscript question [message #7506] Tue, 26 November 1996 00:00
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
Thanks to everyone who responded to my question. If I had only posted
sooner I could have saved a lot of time . . .


Kyle J.
Re: PV-Wave Postscript question [message #7508 is a reply to message #7506] Tue, 26 November 1996 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
R. Kyle Justice wrote:
>
> How do you get a postscript plot (i.e. SET_PLOT, 'ps') with a black
> background? I am only able to get a white background. It does
> not seem to recognize my color table (i.e. DEVICE, /Color).
>
> Kyle


IDL> BLACK = 0 ; or whatever number in your table represents black
IDL> polyfill, [0,1,1,0,0], [0,0,1,1,0], color=BLACK, /norm

Then plot over top of this!

--
Andrew F. Loughe | afl@cdc.noaa.gov
University of Colorado, CIRES | http://cdc.noaa.gov/~afl
Campus Box 449 | phn:(303)492-0707 fax:(303)497-7013
Boulder, CO 80309-0449 | "If you are going to be blue, be bright
blue!"
Re: PV-Wave Postscript question [message #7511 is a reply to message #7506] Tue, 26 November 1996 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
rkj@dukebar.crml.uab.edu (R. Kyle Justice) writes:

> How do you get a postscript plot (i.e. SET_PLOT, 'ps') with a black
> background? I am only able to get a white background. It does
> not seem to recognize my color table (i.e. DEVICE, /Color).

> Kyle


You have to load the color table *after* you use the DEVICE,/COLOR command

One way to change the color of the background in the PostScript device is to
start off by displaying a single pixel of the right color which fills the page,
e.g.

B = [0B]
TV, B(0:0,0:0), 0, 0, XSIZE=!D.X_SIZE, YSIZE=!D.Y_SIZE, /DEVICE

followed by the rest of your plotting commands.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Make money!
Next Topic: Re: plotting tool

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

Current Time: Wed Oct 08 15:54:11 PDT 2025

Total time taken to generate the page: 0.00424 seconds