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

plot_common.rst_ 11 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
  1. |No-spaces|
  2. Description
  3. -----------
  4. Reads (*x*,\ *y*) pairs from *files* [or standard input] and will plot lines, polygons, or symbols at those locations on a map.
  5. If a symbol is selected and no symbol size given, then it will interpret the third column of the input data as symbol size.
  6. Symbols whose *size* is <= 0 are skipped. If no symbols are specified then the symbol code (see **-S** below) must be present as
  7. last column in the input. If **-S** is not used, a line connecting the data points will be drawn instead. To explicitly close
  8. polygons, use **-L**. Select a fill with **-G**. If **-G** is set, **-W** will control whether the polygon outline is drawn or not.
  9. If a symbol is selected, **-G** and **-W** determines the fill and outline/no outline, respectively.
  10. Required Arguments
  11. ------------------
  12. .. _-J:
  13. .. |Add_-J| unicode:: 0x20 .. just an invisible code
  14. .. include:: explain_-J.rst_
  15. .. _-R:
  16. .. |Add_-R| unicode:: 0x20 .. just an invisible code
  17. .. include:: explain_-R.rst_
  18. .. |Add_-Rz| unicode:: 0x20 .. just an invisible code
  19. .. include:: explain_-Rz.rst_
  20. Optional Arguments
  21. ------------------
  22. .. |Add_intables| unicode:: 0x20 .. just an invisible code
  23. .. include:: explain_intables.rst_
  24. .. _-A:
  25. **-A**\ [**m**\|\ **p**\|\ **x**\|\ **y**]
  26. By default, geographic line segments are drawn as great circle arcs by resampling
  27. coarse input data along such arcs. To disable this sampling and draw them as
  28. straight lines, use the **-A** flag. Alternatively, add **m** to draw
  29. the line by first following a meridian, then a parallel. Or append **p**
  30. to start following a parallel, then a meridian. (This can be practical
  31. to draw a line along parallels, for example). For Cartesian data, points
  32. are simply connected, unless you append **x** or **y** to draw stair-case
  33. curves that whose first move is along *x* or *y*, respectively.
  34. .. _-B:
  35. .. include:: explain_-B.rst_
  36. .. _-C:
  37. **-C**\ *cpt*
  38. Give a CPT or specify **-C**\ *color1,color2*\ [*,color3*\ ,...]
  39. to build a linear continuous CPT from those colors automatically,
  40. where *z* starts at 0 and is incremented by one for each color.
  41. In this case *color*\ **n** can be a r/g/b triplet, a color name,
  42. or an HTML hexadecimal color (e.g. #aabbcc ).
  43. If **-S** is set, let symbol fill color be
  44. determined by the z-value in the third column. Additional fields are
  45. shifted over by one column (optional size would be 4th rather than 3rd
  46. field, etc.). If **-S** is not set, then it expects the user to
  47. supply a multisegment file where each segment header contains a
  48. **-Z**\ *val* string. The *val* will control the color of the line or
  49. polygon (if **-L** is set) via the CPT. If modern mode and no argument is given
  50. then we select the current CPT.
  51. .. _-D:
  52. **-D**\ *dx*/*dy*
  53. Offset the plot symbol or line locations by the given amounts *dx/dy*
  54. [Default is no offset]. If *dy* is not given it is set equal to *dx*.
  55. .. _-E:
  56. **-E**\ [**x**\|\ **y**\|\ **X**\|\ **Y**][**+a**][**+cl**\|\ **f**][**+n**][**+w**\ *cap*][**+p**\ *pen*]
  57. Draw symmetrical error bars. Append **x** and/or **y** to indicate which bars you
  58. want to draw (Default is both x and y). The x and/or y errors must be
  59. stored in the columns after the (x,y) pair [or (x,y,z) triplet]. If
  60. **+a** is appended then we will draw asymmetrical error bars; these requires
  61. two rather than one extra data column, with the low and high value.
  62. If upper case **X** and/or **Y** are used we will instead draw
  63. "box-and-whisker" (or "stem-and-leaf") symbols. The x (or y) coordinate
  64. is then taken as the median value, and four more columns are expected to
  65. contain the minimum (0% quantile), the 25% quantile, the 75% quantile,
  66. and the maximum (100% quantile) values. The 25-75% box may be filled by
  67. using **-G**. If **+n** is appended the we draw a notched
  68. "box-and-whisker" symbol where the notch width reflects the uncertainty
  69. in the median. This symbol requires a 5th extra data column to contain the
  70. number of points in the distribution. The **+w** modifier sets the
  71. *cap* width that indicates the length of the end-cap on the error bars
  72. [7\ **p**]. Pen attributes for error bars may also be set via **+p**\ *pen*.
  73. [Defaults: width = default, color = black, style = solid]. When **-C** is
  74. used we can control how the look-up color is applied to our symbol.
  75. Append **+cf** to use it to fill the symbol, while **+cl** will just
  76. set the error pen color and turn off symbol fill. Giving **+c** will
  77. set both color items.
  78. .. _-F:
  79. **-F**\ [**c**\|\ **n**\|\ **r**][**a**\|\ **f**\|\ **s**\|\ **r**\|\ *refpoint*]
  80. Alter the way points are connected (by specifying a *scheme*) and data are grouped (by specifying a *method*).
  81. Append one of three line connection schemes:
  82. **c**\ : Draw continuous line segments for each group [Default].
  83. **r**\ : Draw line segments from a reference point reset for each group.
  84. **n**\ : Draw networks of line segments between all points in each group.
  85. Optionally, append the one of four segmentation methods to define the group:
  86. **a**\ : Ignore all segment headers, i.e., let all points belong to a single group,
  87. and set group reference point to the very first point of the first file.
  88. **f**\ : Consider all data in each file to be a single separate group and
  89. reset the group reference point to the first point of each group.
  90. **s**\ : Segment headers are honored so each segment is a group; the group
  91. reference point is reset to the first point of each incoming segment [Default].
  92. **r**\ : Same as **s**, but the group reference point is reset after
  93. each record to the previous point (this method is only available with the **-Fr** scheme).
  94. Instead of the codes **a**\|\ **f**\|\ **s**\|\ **r** you may append
  95. the coordinates of a *refpoint* which will serve as a fixed external
  96. reference point for all groups.
  97. .. _-G:
  98. **-G**\ *fill*\|\ **+z** :ref:`(more ...) <-Gfill_attrib>`
  99. Select color or pattern for filling of symbols or polygons [Default is no fill].
  100. Note that this module will search for **-G** and **-W** strings in all the
  101. segment headers and let any values thus found over-ride the command line settings.
  102. If **-Z** is set, use **-G+z** to assign fill color via **-C**\ *cpt* and the
  103. *z*-values obtained.
  104. .. _-I:
  105. **-I**\ *intens*
  106. Use the supplied *intens* value (nominally in the -1 to +1 range) to
  107. modulate the fill color by simulating illumination [none]. If no intensity
  108. is provided we will instead read *intens* from the first data column after
  109. the symbol parameters (if given).
  110. .. _-L:
  111. **-L**\ [**+b**\|\ **d**\|\ **D**][**+xl**\|\ **r**\|\ *x0*][**+yl**\|\ **r**\|\ *y0*][**+p**\ *pen*] |ex_OPT-L|
  112. Force closed polygons. Alternatively, append modifiers to build a polygon from a line segment.
  113. Append **+d** to build symmetrical envelope around y(x) using deviations dy(x) given in extra column 3.
  114. Append **+D** to build asymmetrical envelope around y(x) using deviations dy1(x) and dy2(x) from extra columns 3-4.
  115. Append **+b** to build asymmetrical envelope around y(x) using bounds yl(x) and yh(x) from extra columns 3-4.
  116. Append **+xl**\|\ **r**\|\ *x0* to connect first and last point to anchor points at either *xmin*, *xmax*, or *x0*, or
  117. append **+yb**\|\ **t**\|\ *y0* to connect first and last point to anchor points at either *ymin*, *ymax*, or *y0*.
  118. Polygon may be painted (**-G**) and optionally outlined by adding **+p**\ *pen* [no outline].
  119. **Note**: When options like **-G** and **-Z** are passed via segment headers you will need **-L** to ensure
  120. your segments are interpreted as polygons.
  121. .. _-N:
  122. **-N**\ [**c**\|\ **r**]
  123. Do NOT clip symbols that fall outside map border [Default plots points
  124. whose coordinates are strictly inside the map border only]. The option does not apply to lines and polygons
  125. which are always clipped to the map region. For periodic (360-longitude)
  126. maps we must plot all symbols twice in case they are clipped by the repeating
  127. boundary. The **-N** will turn off clipping and not plot repeating symbols.
  128. Use **-Nr** to turn off clipping but retain the plotting of such repeating symbols, or
  129. use **-Nc** to retain clipping but turn off plotting of repeating symbols.
  130. .. _-S:
  131. .. include:: explain_symbols.rst_
  132. .. _-T:
  133. **-T**
  134. Ignore all input files. If **-B** is not used then **-R -J** are not required.
  135. Typically used to move plot origin via **-X** and **-Y**.
  136. .. _-U:
  137. .. include:: explain_-U.rst_
  138. .. _-V:
  139. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  140. .. include:: explain_-V.rst_
  141. .. _-W:
  142. **-W**\ [*pen*][*attr*] :ref:`(more ...) <-Wpen_attrib>`
  143. Set pen attributes for lines or the outline of symbols [Defaults:
  144. width = default, color = black, style = solid]. If the modifier **+cl**
  145. is appended then the color of the line are taken from the CPT (see
  146. **-C**). If instead modifier **+cf** is appended then the color from the cpt
  147. file is applied to symbol fill. Use just **+c** for both effects.
  148. You can also append one or more additional line attribute modifiers:
  149. **+o**\ *offset*\ *unit* will start and stop drawing the line the given distance offsets
  150. from the end point. Append unit *unit* from **c**\|\ **i**\|\ **p** to
  151. indicate plot distance on the map or append map distance units instead (see below)
  152. [Cartesian distances];
  153. **+s** will draw the line using a Bezier spline [linear spline];
  154. **+v**\ *vspecs* will place a vector head at the ends of the lines. You can
  155. use **+vb** and **+ve** to specify separate vector specs at each end [shared specs].
  156. Because **+v** may take additional modifiers it must necessarily be given
  157. at the end of the pen specification.
  158. See the `Vector Attributes`_ for more information.
  159. If **-Z** is set, then append **+z** to **-W** to assign pen color via **-C**\ *cpt* and the
  160. *z*-values obtained.
  161. .. _-X:
  162. .. include:: explain_-XY.rst_
  163. .. _-Z:
  164. **-Z**\ *value*\|\ *file*
  165. Instead of specifying a symbol or polygon fill and outline color via **-G** and **-W**,
  166. give both a *value* via **-Z** and a color lookup table via **-C**. Alternatively,
  167. give the name of a *file* with one z-value (read from the last column) for each polygon in the input data.
  168. To apply the color obtain to a fill, use **-G+z**; to apply it to the pen color, append **+z** to **-W**.
  169. .. |Add_-bi| replace:: [Default is the required number of columns given the chosen settings].
  170. .. include:: explain_-bi.rst_
  171. .. include:: explain_-aspatial.rst_
  172. .. |Add_-di| unicode:: 0x20 .. just an invisible code
  173. .. include:: explain_-di.rst_
  174. .. |Add_-e| unicode:: 0x20 .. just an invisible code
  175. .. include:: explain_-e.rst_
  176. .. |Add_-f| unicode:: 0x20 .. just an invisible code
  177. .. include:: explain_-f.rst_
  178. .. |Add_-g| replace:: The **-g** option is ignored if **-S** is set.
  179. .. include:: explain_-g.rst_
  180. .. |Add_-h| unicode:: 0x20 .. just an invisible code
  181. .. include:: explain_-h.rst_
  182. .. include:: explain_-icols.rst_
  183. .. |Add_-l| unicode:: 0x20 .. just an invisible code
  184. .. include:: explain_-l.rst_
  185. .. include:: explain_-qi.rst_
  186. .. include:: explain_colon.rst_
  187. .. |Add_perspective| unicode:: 0x20 .. just an invisible code
  188. .. include:: explain_perspective.rst_
  189. .. include:: explain_-t.rst_
  190. If no transparency is appended then we will read it from the last column per data record instead.
  191. .. include:: explain_help.rst_
  192. .. include:: explain_distunits.rst_
  193. .. include:: explain_vectors.rst_
Tip!

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

Comments

Loading...