|
2 | 2 | Text symbols
|
3 | 3 | ============
|
4 | 4 |
|
5 |
| -The :meth:`pygmt.Figure.plot` method allows to plot text symbols. Text is |
6 |
| -normally placed with the :meth:`pygmt.Figure.text` method but there are times |
7 |
| -we wish to treat a character or even a string as a plottable symbol. |
8 |
| -A text symbol can be drawn by passing **l**\ *size*\ **+t**\ *string* to |
9 |
| -the ``style`` parameter where *size* defines the size of the text symbol |
10 |
| -(note: the size is only approximate; no individual scaling is done for |
11 |
| -different characters) and *string* can be a letter or a text string |
12 |
| -(less than 256 characters). Optionally, you can append |
13 |
| -**+f**\ *font,outlinecolor* to select a particular font [Default is |
14 |
| -:gmt-term:`FONT_ANNOT_PRIMARY`] and outline color [Default is black] as well |
15 |
| -as **+j**\ *justify* to change the justification [Default is CM]. The fill |
16 |
| -color of the text symbols can be set with the ``fill`` parameter, and the |
17 |
| -outline width can be customized with the ``pen`` parameter. |
18 |
| -For all supported octal codes and fonts see the GMT Technical Reference |
19 |
| -:gmt-docs:`reference/octal-codes.html` and |
20 |
| -:gmt-docs:`reference/postscript-fonts.html`. |
| 5 | +The :meth:`pygmt.Figure.plot` method allows to plot text symbols. Text is normally |
| 6 | +placed with the :meth:`pygmt.Figure.text` method but there are times we wish to treat a |
| 7 | +character or even a string as a plottable symbol. A text symbol can be drawn by passing |
| 8 | +**l**\ *size*\ **+t**\ *string* to the ``style`` parameter where *size* defines the size |
| 9 | +of the text symbol (note: the size is only approximate; no individual scaling is done |
| 10 | +for different characters) and *string* can be a letter or a text string (less than 256 |
| 11 | +characters). Optionally, you can append **+f**\ *font,outlinecolor* to select a |
| 12 | +particular font [Default is :gmt-term:`FONT_ANNOT_PRIMARY`] and outline color [Default |
| 13 | +is black] as well as **+j**\ *justify* to change the justification [Default is CM]. For |
| 14 | +all supported fonts see :doc:`/techref/fonts`. The fill color of the text symbols can be |
| 15 | +set with the ``fill`` parameter, and the outline width can be customized with the |
| 16 | +``pen`` parameter. |
21 | 17 | """
|
22 | 18 |
|
23 | 19 | # %%
|
|
0 commit comments