@@ -81,20 +81,20 @@ def text_(
81
81
records with (x, y[, angle, font, justify], text).
82
82
x/y : float or 1d arrays
83
83
The x and y coordinates, or an array of x and y coordinates to plot
84
- the text
84
+ the text.
85
85
position : str
86
- Sets reference point on the map for the text by using x,y
86
+ Sets reference point on the map for the text by using x, y
87
87
coordinates extracted from ``region`` instead of providing them
88
- through ``x``/``y``. Specify with a two letter (order independent)
88
+ through ``x``/``y``. Specify with a two- letter (order independent)
89
89
code, chosen from:
90
90
91
91
* Horizontal: **L**\ (eft), **C**\ (entre), **R**\ (ight)
92
92
* Vertical: **T**\ (op), **M**\ (iddle), **B**\ (ottom)
93
93
94
- For example, ``position="TL"`` plots the text at the Upper Left corner
94
+ For example, ``position="TL"`` plots the text at the Top Left corner
95
95
of the map.
96
96
text : str or 1d array
97
- The text string, or an array of strings to plot on the figure
97
+ The text string, or an array of strings to plot on the figure.
98
98
angle: int, float, str or bool
99
99
Set the angle measured in degrees counter-clockwise from
100
100
horizontal (e.g. 30 sets the text at 30 degrees). If no angle is
@@ -110,11 +110,12 @@ def text_(
110
110
columns.
111
111
justify : str or bool
112
112
Set the alignment which refers to the part of the text string that
113
- will be mapped onto the (x,y) point. Choose a 2 character
113
+ will be mapped onto the (x, y) point. Choose a two-letter
114
114
combination of **L**, **C**, **R** (for left, center, or right) and
115
- **T**, **M**, **B** for top, middle, or bottom. E.g., **BL** for lower
116
- left. If no justification is explicitly given (i.e. ``justify=True``),
117
- then the input to ``textfiles`` must have this as a column.
115
+ **T**, **M**, **B** (for top, middle, or bottom). E.g., **BL** for
116
+ bottom left. If no justification is explicitly given
117
+ (i.e. ``justify=True``), then the input to ``textfiles`` must have
118
+ this as a column.
118
119
{projection}
119
120
{region}
120
121
*Required if this is the first plot command.*
@@ -125,7 +126,7 @@ def text_(
125
126
specified. Append the unit you want (*c* for cm, *i* for inch, or *p*
126
127
for point; if not given we consult :gmt-term:`PROJ_LENGTH_UNIT`)
127
128
or *%* for a percentage of the font size. Optionally, use modifier
128
- **+t** to set the shape of the textbox when using ``fill`` and/or
129
+ **+t** to set the shape of the text box when using ``fill`` and/or
129
130
``pen``. Append lower case **o** to get a straight rectangle
130
131
[Default is **o**]. Append upper case **O** to get a rounded
131
132
rectangle. In paragraph mode (*paragraph*) you can also append lower
@@ -136,7 +137,8 @@ def text_(
136
137
no fill].
137
138
offset : str
138
139
[**j**\|\ **J**]\ *dx*\[/*dy*][**+v**\[*pen*]].
139
- Offsets the text from the projected (x,y) point by *dx*,\ *dy* [0/0].
140
+ Offsets the text from the projected (x, y) point by *dx*/\ *dy*
141
+ [Default is ``"0/0"``].
140
142
If *dy* is not specified then it is set equal to *dx*. Use **j** to
141
143
offset the text away from the point instead (i.e., the text
142
144
justification will determine the direction of the shift). Using
@@ -148,7 +150,7 @@ def text_(
148
150
Sets the pen used to draw a rectangle around the text string
149
151
(see ``clearance``) [Default is ``"0.25p,black,solid"``].
150
152
no_clip : bool
151
- Do NOT clip text at map boundaries [Default is will clip].
153
+ Do NOT clip text at map boundaries [Default is with clip].
152
154
{timestamp}
153
155
{verbose}
154
156
{xyshift}
0 commit comments