Skip to content

Commit 019bbf4

Browse files
Rewrapp lines
1 parent 7e709f8 commit 019bbf4

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

examples/gallery/lines/vector_heads_tails.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,28 @@
22
Vector heads and tails
33
======================
44
5-
Many methods in PyGMT allow plotting vectors with individual
6-
heads and tails. For this purpose, several modifiers may be appended to
7-
the corresponding vector-producing parameters for specifying the placement
8-
of vector heads and tails, their shapes, and the justification of the vector.
5+
Many methods in PyGMT allow plotting vectors with individual heads and tails.
6+
For this purpose, several modifiers may be appended to the corresponding
7+
vector-producing parameters for specifying the placement of vector heads and
8+
tails, their shapes, and the justification of the vector.
99
10-
To place a vector head at the beginning of the vector path
11-
simply append **+b** to the vector-producing option (use **+e** to place
12-
one at the end). Optionally, append **t** for a terminal line, **c** for a
13-
circle, **a** for arrow (default), **i** for tail, **A** for plain open
14-
arrow, and **I** for plain open tail. Further append **l** or **r** (e.g.
15-
``"+bar"``) to only draw the left or right half-sides of the selected head/tail
16-
(default is both sides) or use **+l** or **+r** to apply simultaneously to both
17-
beginning and end. In this context, left and right refer to the side of the
18-
vector line when viewed from the beginning point to the end point of a line
19-
segment. The angle of the vector head apex can be set using **+a**\ *angle*
20-
(default is 30). The shape of the vector head can be adjusted using
21-
**+h**\ *shape* (e.g. ``"+h0.5"``).
10+
To place a vector head at the beginning of the vector path simply append **+b**
11+
to the vector-producing option (use **+e** to place one at the end). Optionally,
12+
append **t** for a terminal line, **c** for a circle, **a** for arrow (default),
13+
**i** for tail, **A** for plain open arrow, and **I** for plain open tail.
14+
Further append **l** or **r** (e.g. ``"+bar"``) to only draw the left or right
15+
half-sides of the selected head/tail (default is both sides) or use **+l** or
16+
**+r** to apply simultaneously to both beginning and end. In this context, left
17+
and right refer to the side of the vector line when viewed from the beginning
18+
point to the end point of a line segment. The angle of the vector head apex can
19+
be set using **+a**\ *angle* (default is 30). The shape of the vector head can
20+
be adjusted using **+h**\ *shape* (e.g. ``"+h0.5"``).
2221
2322
In the following, we use the :meth:`pygmt.Figure.plot` method to plot vectors
2423
with individual heads and tails. We must specify the modifiers (together with
2524
the vector type, here ``"v"`` for Cartesian vector, see also the
26-
:doc:`Vector types example </gallery/lines/vector_styles>`)
27-
by passing the corresponding shortcuts to the ``style`` parameter.
25+
:doc:`Vector types example </gallery/lines/vector_styles>`) by passing the
26+
corresponding shortcuts to the ``style`` parameter.
2827
2928
For further modifiers see :gmt-docs:`plot.html#vector-attributes`. Please note
3029
that vectors were completely redesigned for GMT 5 which separated the vector

0 commit comments

Comments
 (0)