Set the Attributes of TEXTs

/bg_co$*$lor=int_expr
The text background colour. See table in section 15.3.69.
/co$*$lor=int_expr
The text colour. See table in section 15.3.69.
/ex$*$factor=float_expr
The expansion factor.
/fo$*$nt=int_expr
Character set number, see the table in section 15.3.69 for the fonts and the table in section 15.3.69 for the available symbols. A symbol can be selected by:
SPECTRA> set 1.4/string="Wavelength[\angstroem{}]"

The loaded fonts can be inspected by:

SPECTRA> show x11/font
/fr$*$ame=int_expr
0 - normalized device coordinates, from 0 to 1. 1 - world coordinates
/h_$*$align=int_expr
Horizontal alignment
0 - Normal 1 - Left 2 - Center 3 - Right
/he$*$ight=int_expr
The text height [pixel], default 17.

The appearance of the TEXTs depends also on the /map_mode attribute of the LAYOUT.

/pr$*$ec=int_expr
The character size [points] for which the font was calculated. It is recommended to set it to 0.
/st$*$ring=text_expr
The text string.
/ux=float_expr
/uy=float_expr
The up-vector. Used to rotate the text.
/v_$*$align=int_expr
Vertical alignment
0 - Normal 1 - Top 2 - Cap 3 - Half 4 - Base 5 - Bottom
/x=float_expr
/y=float_expr
The position of the text string. Depending on the value of the /frame flag is it measured in normalized device coordinates or world coordinates.

e.g.:
SPECTRA> set bpu1.4/y=1.1
Sets the y-position of a TEXT.


Table 15.3: The default colour code
 
Code Colour
0 White
1 Black
2 Red
3 Green
4 Blue
5 Cyan
6 Yellow
7 Magenta
8 Grey85
9 Grey50



Table 15.4: Example: Using the colour opaque
 
!
! Example for using the colour opaque (255):
!
  delete *.*
!
! create the template, a gauss curve
!
  create g1 -5 5 200 
  calc g1 = exp(-g1*g1)

  for (i=2; i < 20; i = i + 1)
      sname = g""i
!
! duplicate the template
!
      copy g1 sname
!
! shift the new curve
!
      calc x(sname) = x(sname) - 0.1*i
      calc sname = sname - abs(0.1*(i-10))
!
! set the colour to opaque, select 'line-area' 
!
      set sname/colour=255/primitive=4/type=1/y_shift=1-0.05*i
  endfor
!
! all curves are diplayed in the same window
!
  set */x_min=-8/x_max=5/y_max=2
!
! no axes are displayed 
!
  overlay

  delete g1.*
  display
  postscript/nocon/eps opaque.ps


Figure 15.8: Output of the opaque example code, sec. 15.3.69
Image opaque


Table 15.5: The Fonts
 
Code Font
0 Times-Roman
1 Times Roman
2 Times Italic
3 Times Bold
4 Times Bold Italic
5 Helvetica
6 Helvetica Oblique
7 Helvetica Bold
8 Helvetica Bold Oblique
9 Courier
10 Courier Oblique
11 Courier Bold
12 Courier Bold Oblique
13 New Century Schoolbook
14 New Century Schoolbook Italic
15 New Century Schoolbook Bold
16 New Century Schoolbook Bold Italic
17 Symbol



Table 15.6: Mathematical Symbols
 
$\int$ \int $\forall$ \forall
$\exists$ \exists $\ni$ \ni
< \less > \greater
$\cong$ \congruent   \therefor
$\perp$ \perp $\emptyset$ \emptyset
{ \{ } \}
$\sim$ \sim $\leq$ \leq
$\infty$ \infty $\pm$ \pm
$\geq$ \geq $\times$ \times
$\propto$ \propto $\partial$ \partial
$\div$ \div $\neq$ \neq
$\equiv$ \equiv $\approx$ \approx
$\otimes$ \otimes $\oplus$ \oplus
  \angleleft   \angleright
$\cap$ \cap $\cup$ \cup
$\supset$ \supset $\supseteq$ \supseteq
$\subset$ \notsubset $\subset$ \subset
$\subseteq$ \subseteq $\in$ \in
$\in$ \notelement $\angle$ \angle
$\nabla$ \nabla $\prod$ \prod
$\sum$ \sum $\surd$ \surd
$\cdot$ \cdot $\neg$ \neg
$\wedge$ \wedge $\vee$ \vee



Table 15.7: The Arrow Symbols
 
$\leftrightarrow$ \leftrightarrow $\leftarrow$ \leftarrow
$\uparrow$ \uparrow $\rightarrow$ \rightarrow
$\downarrow$ \downarrow $\Leftrightarrow$ \Leftrightarrow
$\Leftarrow$ \Leftarrow $\Uparrow$ \Uparrow
$\Rightarrow$ \Rightarrow $\Downarrow$ \Downarrow



Table 15.8: The Greek Letters
 
$\alpha$ \alpha $\beta$ \beta
$\gamma$ \gamma $\Gamma$ \Gamma
$\delta$ \delta $\Delta$ \Delta
$\epsilon$ \epsilon $\zeta$ \zeta
$\eta$ \eta $\theta$ \theta
$\Theta$ \Theta $\vartheta$ \vartheta
$\iota$ \iota $\kappa$ \kappa
$\lambda$ \lambda $\Lambda$ \Lambda
$\mu$ \mu $\nu$ \nu
$\xi$ \xi $\Xi$ \Xi
$\pi$ \pi $\Pi$ \Pi
$\rho$ \rho $\sigma$ \sigma
$\Sigma$ \Sigma $\tau$ \tau
$\phi$ \phi $\Phi$ \Phi
$\varphi$ \varphi $\chi$ \chi
$\upsilon$ \upsilon $\Upsilon$ \Upsilon
$\psi$ \psi $\Psi$ \Psi
$\omega$ \omega $\Omega$ \Omega



Table 15.9: Miscellaneous Symbols
 
Å \angstroem $\hbar$ \hbar
$\sharp$ \sharp $\cdot$ \cdot
© \copyright $\clubsuit$ \clubsuit
$\diamondsuit$ \diamondsuit $\heartsuit$ \heartsuit
$\spadesuit$ \spadesuit $\bullet$ \bullet
$\ldots$ \ldots   \carriagereturn
$\aleph$ \aleph $\Im$ \Im
$\Re$ \Re    



Table 15.10: The Line Types
 
Code Line Type
1 Solid
2 Dotted .......
3 Dotted . . . .
4 Dashed - - - -
5 Dashed - - -
6 Dashed dotted - . - .
7 Dashed dotted - ... - ...
8 Dashed dotted - ..... - .....
8 Dashed dotted - - . - - .



Table 15.11: The Marker Type
 
Code Marker Type
1 Dot
2 Plus
3 Star
4 Circle
5 Diagonal cross
-1 Solid circle
-2 Triangle up
-3 Solid triangle up
-4 Triangle down
-5 Solid triangle down
-6 Square
-7 Solid square
-8 Bow-tie
-9 Solid bow-tie
-10 Hourglass
-11 Solid hourglass
-12 Diamond
-13 Solid diamond



Table 15.12: The Tag Types
 
Code Tag Type
1 Line
2 Marker
3 Left arrow
4 Right arrow
5 Left-right arrow
6 Square
7 Solid square
8 Rectangle (PAR1 stretches it)
9 Solid rectangle
10 Ellipse (PAR1 stretches it)
11 Solid circle (PAR1 stretches it)
12 Triangle
13 Solid triangle