[Thread Prev][Thread Next][Index]

Ferret How-to: coloured labels



	*********************************
	* Ferret How-to: colored labels *
	*********************************

Hi Stefan,

The Ferret Users Guide is not as clear as it should be on the subject of
colored text labels so here is a brief explanation.

Use "@Pn" in your label string to select among the 6 predefined line/text
colors. Try
	yes? GO line_samples
to see the choices.

If the color you need is not among the default choices you can redefine any of
them using the "PPL COLOR" command (see PLOT+ Enhancements Guide). The color
settings WILL be applied on the hard copy, too.

Here is a quick example to try at your keyboard.

Example:
	! a sample plot
	go fland 60 black basemap

	! a standard black label (pen=1 default -- same as using "@P1")
	label 50 -60 -1 0 .2 Here is a label in black

	! a red label
	label 50 -80 -1 0 .2 @P2Here is a label in red

	! a white label -- redefine pen 6 to be white (100% on R,G, and B)
	ppl color 6 100,100,100
	label 50 -80 -1 0 .2 @P6Here is a label in white


	- steve

P.S. Also try (and look at) the script
	yes? GO black
for an "inverse video" approach.
==========================================================

On Apr 25,  6:59pm, Stefan Rahmstorf wrote:
> Subject: coloured labels
> Hi Ferrets,
>
> does someone know how to use "label" to draw a coloured label?
> E.g. write a white text string onto black land background.
>
> Thanks for the help,
>
> Stefan
>
> --



-- 

		|  NOAA/PMEL               |  ph. (206) 526-6080  
Steve Hankin	|  7600 Sand Point Way NE  |  FAX (206) 526-6744
		|  Seattle, WA 98115-0070  |  hankin@pmel.noaa.gov


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement