3.2.5. Plot text¶
In it is possible to draw text strings on the plot surface or near the frame of the plot. Several properties of the text can be adjusted, like the fontheight, font type, colour, orientation and location of the text. See the figure below for an example of possible fonts.
3.2.5.1. Font types (font)¶
The following fonts types are allowed (values between 1–4):
normal font (default)
roman font
italic font
script font
3.2.5.2. Font heights (fh)¶
The font height can be entered as a real number, the default value is 1. A useful value for getting results that are still readable for publications is 1.3. Note that if you make the font height for the captions of the figure too large, you may loose some text off the paper.
3.2.5.3. Special characters¶
The texts strings that are plotted may be modified using the pgplot
escape sequences. These are character–sequences that are not plotted,
but are interpreted as instructions to change the font, draw
superscripts or subscripts, draw non-ASCII characters, Greek letters,
etc. All escape sequences start with a backslash character (\
). A
list of the defined escape sequences is given in the first table below. A
lookup table for Greek letters is presented in the table after that. Some
useful non-ASCII characters are listed as well.
The last table shows some examples of the use of pgplot escape
sequences in character strings.
A list of available escape sequences.
Seq. |
Description |
---|---|
|
Start a superscript or end a subscript. A |
|
Start a subscript or end a superscript. A |
|
Backspace (i.e. do not advance textpointer after plotting the previous character) |
|
Ångstrom symbol (Å) |
|
Greek letter corresponding to roman letter |
|
Switch to Normal font |
|
Switch to Roman font |
|
Switch to Italic font |
|
Switch to Script font |
|
Character number , see pgplot manual appendix B, tab. 1 |
** List of upper- and lower case Greek letters (G) and their corresponding Roman letters (R).**
Displayed |
PGPLOT escape sequence |
|
|
= 75 25 km s Mpc |
|