PV-Wave Postscript question [message #7506] |
Tue, 26 November 1996 00:00 |
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  |
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  |
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
|
|
|