Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

explain_vectors.rst_ 5.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  1. Vector Attributes
  2. -----------------
  3. Several modifiers may be appended to vector-producing options for
  4. specifying the placement of vector heads, their shapes, and the
  5. justification of the vector. Below, left and right refers to the
  6. side of the vector line when viewed from the start point to the
  7. end point of a segment:
  8. **+a**\ *angle* sets the angle of the vector head apex [30].
  9. **+b** places a vector head at the beginning of the vector path [none].
  10. Optionally, append **t** for a terminal line, **c** for a circle,
  11. **a** for arrow [Default], **i** for tail, **A** for plain open arrow,
  12. and **I** for plain open tail.
  13. Further append **l**\|\ **r** to only draw the left or right
  14. half-sides of this head [both sides].
  15. **+e** places a vector head at the end of the vector path [none].
  16. Optionally, append **t** for a terminal line, **c** for a circle,
  17. **a** for arrow [Default], **i** for tail, **A** for plain open arrow,
  18. and **I** for plain open tail.
  19. Further append **l**\|\ **r** to only draw the left or right
  20. half-sides of this head [both sides].
  21. **+g**\ [*fill*] sets the vector head fill [Default fill is used, which may be no fill].
  22. Turn off vector head fill by not appending a *fill*.
  23. **+h**\ *shape* sets the shape of the vector head (range -2/2). Default
  24. is controlled by :term:`MAP_VECTOR_SHAPE` [0].
  25. **+l** draws half-arrows, using only the left side of specified heads [both sides].
  26. **+m** places a vector head at the mid-point the vector path [none].
  27. Append **f** or **r** for forward or reverse direction of the vector [forward].
  28. Optionally, append **t** for a terminal line, **c** for a circle,
  29. **a** for arrow [Default], **i** for tail, **A** for plain open arrow,
  30. and **I** for plain open tail. Further append **l**\|\ **r** to only draw the left or right
  31. half-sides of this head [both sides]. Cannot be combined with **+b** or **+e**.
  32. **+n**\ *norm* scales down vector attributes (pen thickness, head size)
  33. with decreasing length, where vector plot lengths shorter than *norm* will have
  34. their attributes scaled by length/\ *norm* [arrow attributes remains
  35. invariant to length]. For Cartesian vectors specify a length in plot units, while
  36. for geovectors specify a length in km.
  37. **+o**\ [*plon*\ /\ *plat*] specifies the oblique pole for the great or
  38. small circles. Only needed for great circles if **+q** is given. If no
  39. pole is appended then we default to the north pole.
  40. **+p**\ [*pen*] sets the vector pen attributes. If no *pen* is appended
  41. then the head outline is not drawn. [Default pen is half the width of stem pen, and
  42. head outline is drawn]
  43. **+q** means the input *angle*, *length* data instead represent the *start* and *stop*
  44. opening angles of the arc segment relative to the given point. See **+o** to specify
  45. a specific pole for the arc [north pole].
  46. **+r** draws half-arrows, using only the right side of specified heads [both sides].
  47. **+t**\ [**b**\|\ **e**]\ *trim* will shift the beginning or end point (or both)
  48. along the vector segment by the given *trim*; append suitable unit (**c**, **i**, or **p**). If the modifiers
  49. **b**\|\ **e** are not used then *trim* may be two values separated by a slash,
  50. which is used to specify different trims for the beginning and end. Positive trims
  51. will shorted the vector while negative trims will lengthen it [no trim].
  52. In addition, all but circular vectors may take these modifiers:
  53. **+j**\ *just* determines how the input *x*,\ *y* point relates to the
  54. vector. Choose from **b**\ eginning [default], **e**\ nd, or **c**\ enter.
  55. **+s** means the input *angle*, *length* are instead the *x*, *y*
  56. coordinates of the vector end point.
  57. Finally, Cartesian vectors may take these modifiers:
  58. **+z**\ *scale* expects input *dx*,\ *dy* vector components and
  59. uses the *scale* to convert to polar coordinates with length in given unit.
  60. **Note**: Vectors were completely redesigned for GMT5 which separated the vector head (a polygon)
  61. from the vector stem (a line). In GMT4, the entire vector was a polygon and it could only
  62. be a straight Cartesian vector. Yes, the old GMT4 vector shape remains accessible if
  63. you specify a vector (**-Sv**\|\ **V**) using the GMT4 syntax, explained here: *size*, if present, will
  64. be interpreted as *arrowwidth/headlength/headwidth* [Default is 0.075c/0.3c/0.25c (or
  65. 0.03i/0.12i/0.1i)]. By default, arrow attributes remain invariant to the length of the
  66. arrow. To have the size of the vector scale down with decreasing size, append **+n**\ *norm*,
  67. where vectors shorter than *norm* will have their attributes scaled by *length*/*norm*.
  68. To center the vector on the balance point, use **-Svb**; to align point with the vector head,
  69. use **-Svh**; to align point with the vector tail, use **-Svt** [Default]. To give the
  70. head point’s coordinates instead of direction and length, use **-Svs**. Upper case
  71. **B**, **H**, **T**, **S** will draw a double-headed vector [Default is single head].
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...