Personal tools
You are here: Home FAQ colored labels
Document Actions

colored labels

Question:

How do I specify the color of text labels?

Example:

Try this:

   ! 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

Solution:

Use "@Pn" in your label string to select among the 6 predefined line/text colors as in the examples above. 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.


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: