Fonts
Brian E. Doty
doty at COLA.IGES.ORG
Mon Jul 17 17:42:18 EDT 2006
The backquote character: `
can be imbedded in any grads text string
to change to new fonts or modes within
the string.
This for commands such as draw string,
draw title, draw xlab, draw ylab, set clab, etc.
An example of using a superscript:
draw title Watts/m`a2`n for Tuesday
Note that the `a sets the mode to "above"
or superscript, and `n sets the mode back
to "normal".
An example of using a subscript:
draw title Z`b500`n for Tuesday
where the `b sets the mode to "below" or
subscript.
You can also change fonts, with the backquote
followed by a font number. This is useful
if you want to use the characters in font 3,
which is the symbol font. It is useful to
remember that the period in font 3 is the
degree symbol (there is no need to superscript
this symbol).
An example of using this is:
draw title Temperature in `3.`1C over Europe
This can also be used in contour labels,
for example:
set clab %g`3.`1C
display ts-273.16
which would produce contour labels of the number
followed by the degree symbol followed by the
capital C character.
These escapes can be combined in a single
string... Brian
More information about the gradsusr
mailing list