Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/gipsy/gplot/fontdemo.html
Дата изменения: Unknown
Дата индексирования: Fri Jan 16 23:07:29 2009
Кодировка:

Поисковые слова: jet
GPLOT recipes

GPLOT recipes: Text in plots



Above: Demonstration of text fonts, justifications and angles.

The GPLOT macro:

The Greek characters are obtained by \g followed by an upper- or lower case letter. In a text you can switch to another font using one of \fn, \fr, \fi or \fs for a normal, Roman, Italic or Script font.
mm                               ! Work in millimeters
angle 0                          ! Preset angle
justifi 0                        ! Preset text justification
lwidth 2                         ! Line width
font roman                       ! Select font
move 30 172
text ROMAN:
move 30 166
text use: ABGDEZYHIKLMNCOPRSTUFXQW
move 30 160
text for:  \gA\gB\gG\gD\gE\gZ\gY\gH\gI\gK\gL\gM\gN\gC\gO\gP\gR\gS\gT\gU\gF\gX\gQ\gW
move 30 152
text use: abgdezyhiklmncoprstufxqw
move 30 146
text for: \ga\gb\gg\gd\ge\gz\gy\gh\gi\gk\gl\gm\gn\gc\go\gp\gr\gs\gt\gu\gf\gx\gq\gw
!
!============= Other fonts ===========
!
move 30 134
font roman
text NORMAL:
move 65 134
font normal
text abgdezyhiklmncoprstufxqw
move 30 128
font roman
text ITALIC: 
move 65 128 
font italic
text abgdezyhiklmncoprstufxqw
move 30 122
font roman
text SCRIPT: 
move 65 122
font script
text abgdezyhiklmncoprstufxqw
Next lines demonstrate how to create mathematical formulaes. Note the change of fonts with the \f... commands. Note also the use of superscript and subscript.
!
!============= Example formulaes ===========
!
font roman
move 30 100
text \fif\fr(\fix\fr) = \fix\fr\u2\dcos(2\gp\fix\fr)e\u\fix\fr\u2
move 30 90
text \fiH\d0\u \fr= 75 \(2233) 25 km s\u-1\d Mpc\u-1\d
move 30 80
text \fsL/L\d\(2281)\u\fr = 5.6 (\gl1216\A)
!
!============= Justifications ===========
!
move 80 70
justifi 0                      ! Justify text to the left
marker
text left justified
move 80 64
justifi 0.5                    ! Center text
marker
text centered
move 80 58
justifi 1                      ! Justify text to the right
marker
text right justified
!
!============= Angles ===========
!
move 80 40
justifi 0.5
angle 45
text text with angle
Summary of possible escape sequences:
GIPSY