|
8 | 8 | the ``style`` parameter where *size* defines the size of the text symbol
|
9 | 9 | (note: the size is only approximate; no individual scaling is done for
|
10 | 10 | different characters) and *string* can be a letter or a text string
|
11 |
| -(less than 256 characters). Optionally, you can append **+f**\ *font* to |
12 |
| -select a particular font [Default is :gmt-term:`FONT_ANNOT_PRIMARY`] as well as |
13 |
| -**+j**\ *justify* to change the justification [Default is CM]. Outline |
14 |
| -and fill color of the text symbols can be customized via the ``pen`` |
15 |
| -and ``color`` parameters, respectively. |
16 |
| -
|
| 11 | +(less than 256 characters). Optionally, you can append |
| 12 | +**+f**\ *font,outlinecolor* to select a particular font [Default is |
| 13 | +:gmt-term:`FONT_ANNOT_PRIMARY`] and outline color [Default is black] as well |
| 14 | +as **+j**\ *justify* to change the justification [Default is CM]. The fill |
| 15 | +color of the text symbols can be set with the ``color`` parameter, and the |
| 16 | +outline width can be customized with the ``pen`` parameter. |
17 | 17 | For all supported octal codes and fonts see the GMT cookbook
|
18 | 18 | :gmt-docs:`cookbook/octal-codes.html` and
|
19 | 19 | :gmt-docs:`cookbook/postscript-fonts.html`.
|
|
37 | 37 | # color fill is set to "gold"
|
38 | 38 | fig.plot(x=5.5, y=1.5, style="l3.5c+ts+fTimes-Italic", color="gold", pen=pen)
|
39 | 39 | # plot the pi symbol (\160 is octal code for pi) of size 3.5c, for this use
|
40 |
| -# the "Symbol" font, color fill is set to "magenta4" |
41 |
| -fig.plot(x=7, y=1.5, style="l3.5c+t\160+fSymbol", color="magenta4", pen=pen) |
| 40 | +# the "Symbol" font, the outline color of the symbol is set to |
| 41 | +# "darkorange", the color fill is set to "magenta4" |
| 42 | +fig.plot(x=7, y=1.5, style="l3.5c+t\160+fSymbol,darkorange", color="magenta4", pen=pen) |
42 | 43 |
|
43 | 44 | fig.show()
|
0 commit comments