[Thread Prev][Thread Next][Index]
Re: Background color
Here's one way, and it allows you to use other colors as well
besides black with a white pen. It'll work in any of Ferret's
plotting modes.
( from
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2003/msg00239.html)
---
You can set a viewport covering the entire window and fill that with
black (or any other color) and then make your plot in an identically-
sized viewport which will appear on top of the first one. Setting the
foreground pen to white does work in gif mode.
! Define a viewport with the /AXES qualifier so there are no margins
DEFINE VIEWPORT/X=0:1/Y=0:1/AXES full2
SET VIEW full2
SHADE/I=1:2/J=1:2/PALETTE=black i+j
! Now set to the pre-defined viewport FULL
! Set the main pen color to white (as in the script black.jnl)
SET VIEW full
PPL COLOR 1 100 100 100
GO ptest ! a test plot
This gives us a lot more flexibility with colors. Try this:
DEFINE VIEWPORT/X=0:1/Y=0:1/AXES full2
SET VIEW full2
SHADE/I=1:2/J=1:2/PALETTE=yellow i+j
SET VIEW full
PPL COLOR 1 100 0 0
GO ptest
---
Boyin Huang wrote:
Dear ferreters:
How can I keep the background color?
To make a better slideshow, I tried to change
background color by using "go black".
It works in displaying a picture in computer monitor.
But the background is still white when it is
transferred into a postscript file.
Fprint -l cps -o file.ps -R metafile.plt
=====
Boyin Huang
The Center for Research on the Changing Earth System (CRCES)
10211 Wincopin Circle, Suite 240
Columbia, Maryland 21044
Tel. 410-992-5300/819 (O), 410-737-4557(H)
Fax. 410-992-5944, Email. byh@crces.org
http://byh.crces.org
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement