File: vector

package info (click to toggle)
ploticus-doc 2.33-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,392 kB
  • ctags: 169
  • sloc: pascal: 469; makefile: 63; sh: 11
file content (605 lines) | stat: -rw-r--r-- 10,222 bytes parent folder | download
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: proc vector</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>proc vector</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
     </small><br><a href="../doc/scripthome.html">Scripts</a>
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH proc_vector PL "02-JUN-2006   PL ploticus.sourceforge.net"

.ig >>
<center>
<img src="../gallery/vector0.gif">
</center>
.>>

.LP
\fBproc vector\fR displays a group of vectors, using the
.ig >>
<a href="dataformat.html#currentds">
.>>
\0current data set,
.ig >>
</a>
.>>
in the
.ig >>
<a href="areadef.html">
.>>
\0current plot area.
.ig >>
</a>
.>>
\fBproc vector\fR can render arrows, plain lines, 

.ig >>
<a href="../gallery/vecbars.htm">
.>>
\0error bars (I bars), T bars,
.ig >>
</a>
.>>

or 
.ig >>
<a href="../gallery/windbarbs.htm">
.>>
\0wind barbs.
.ig >>
</a>
.>>

Vector direction can be specified in degrees, radians, or by directly supplying the coordinates
of the second point.
Vector length or magnitude can be constant for all vectors, or controlled by your data.
See also the
.ig >>
<a href="../gallery/gall.vector.html">
.>>
\0vector gallery examples.
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>
.SH Attributes
\fCxfield\fR and
\fCyfield\fR \fBmust\fR be supplied.
Vector direction and magnitude must be specified, either by a) supplying
\fCdirfield\fR along with \fCmagfield\fR or \fCconstantlen\fR; or
b) supplying \fCx2field\fR and \fCy2field\fR.

.ig >>
<br><br>
.>>
.LP
\fBtype\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fCarrow | barb | errorbar | tbar \fR
.IP \0
Controls the type of vector to draw.  Default is \fCarrow\fR

.ig >>
<br><br>
.>>

.LP
\fBxfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.br
\fByfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
Data fields holding the X coordinate and Y coordinate of the vector starting point.


.ig >>
<br><br>
.>>
.LP
\fBdirfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
Data field holding a representation of the direction.
By default this is degrees, where 0 is at the top, and rotating clockwise,
but other options are available, see \fCdirunits\fR, \fCdirrange\fR, \fCzeroat\fR, and \fCclockdir\fR.

.ig >>
<br><br>
.>>
.LP
\fBconstantlen\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fIh\fR
.IP \0
This attribute may be specified to cause all vectors to be \fIh\fR inches/cm.
.br
Example: \fCconstantlen: 0.6\fR

.ig >>
<br><br>
.>>
.LP
\fBx2field\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.br
\fBy2field\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
Data fields holding the X coordinate and Y coordinate of the vector ending point.
This is an alternative way of specifying the direction and length of the vector, so
if these are specified, then \fCdirfield\fR and \fCmagfield\fR are not needed.

.ig >>
<br><br><br>
.>>
.SH Data-driven vector length
.LP
\fBmagfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.br
\fBlenfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
Data field holding a representation of the magnitude or length of the vector.
By default this is in absolute units (inches or cm),
but other options are available, see \fClenunits\fR and \fClenscale\fR.
\fBlenfield\fR is an alias to \fBmagfield\fR.

.ig >>
<br><br>
.>>

.LP
\fBlenunits\fC  
.ig >>
&nbsp; &nbsp;
.>>
absolute | data | x | y
.IP \0
Allows the contents of \fClenfield\fR to be either \fCabsolute\fR units (the default),
or \fCdata\fR units.

.ig >>
<br><br>
.>>
.LP
\fBlenscale\fI 
.ig >>
&nbsp; &nbsp;
.>>
h\fR
.IP \0
\fIh\fR is a scaling factor;  the contents of \fClenfield\fR will be
multiplied by \fIh\fR.  Default is \fC1.0\fR.

.ig >>
<br><br><br>
.>>

.SH Data-driven vector color 
.LP
\fBcolorfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
If specified, the color (and any other 
.ig >>
<a href="linedetails.html">
.>>
\0linedetails
.ig >>
</a>
.>>
)
for the vector will be controlled using 
the contents of this data field, using the
.ig >>
<a href="legendentry.html#legenddriven">
.>>
\0legend-driven technique
.ig >>
</a>
.>>
(the legend serves as a table to map data values to colors, etc).
.br
Example:
.ig >>
<a href="../gallery/vector3.htm">
.>>
\0vector3
.ig >>
</a>
.>>

.ig >>
<br><br>
.>>
.LP
\fBexactcolorfield\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="attributetypes.html#dfield">
.>>
\0dfield
.ig >>
</a>
.>>
.IP \0
If specified, the color (and any other 
.ig >>
<a href="linedetails.html">
.>>
\0linedetails
.ig >>
</a>
.>>
) for the vector will be controlled using 
the contents of this data field directly.
For example, to control vector color, this data field could hold values like this:
.nf
  color=green
  color=blue
  color=grey(0.9)
.fi

.ig >>
<br><br><br>
.>>
.SH Vector appearance details

.LP
\fBlinedetails\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="linedetails.html">
.>>
\0line details
.ig >>
</a>
.>>
.IP \0
Controls the color, width, etc. of the line portion of the vector.

.ig >>
<br><br>
.>>
.LP
\fBarrowheadlength\fI 
.ig >>
&nbsp; &nbsp;
.>>
h \fR
.IP \0
Controls the length of the arrowhead, in inches/cm.  Default is \fC0.15\fR.

.ig >>
<br><br>
.>>
.LP
\fBarrowheadwidth\fI 
.ig >>
&nbsp; &nbsp;
.>>
h \fR
.IP \0
Controls the fatness of the arrowhead.  Default is \fC0.4\fR.

.ig >>
<br><br>
.>>
.LP
\fBarrowheadcolor\fI 
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="color.html">
.>>
\0color
.ig >>
</a>
.>>
.IP \0
Controls the color of the arrowhead.  By default this will be the
same as the line.

.ig >>
<br><br>
.>>
.LP
\fBtaillen\fI
.ig >>
&nbsp; &nbsp;
.>>
\fIh\fR
.IP \0
Controls the length of tails when error bars or t bars are being rendered.  
\fIh\fR is in absolute units (inches or cm).

.ig >>
<br><br>
.>>
.LP
\fBclip\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fCyes | no\fR
.IP \0
Default is \fCyes\fR, which causes vectors to be clipped to the plotting area.
Use \fCno\fR to allow vectors to range past the plot area limits.

.ig >>
<br><br><br>
.>>
.SH Vector direction details

.LP
\fBdirrange\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fIh\fR
.IP \0
A range for the values in \fCdirfield\fR.  For example, if \fCdirrange\fR is given
as \fC100\fR, a value of \fC50\fR would be displayed at 180 degrees.
.br
Example: \fCdirrange: 12\fR

.ig >>
<br><br>
.>>
.LP
\fBdirunits\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fCdegrees | radians\fR
.IP \0
Default is \fCdegrees\fR.  If \fCradians\fR is specified, 
\fCdirfield\fR is taken to be radians.
.br
Example: \fCdirunits: radians\fR

.ig >>
<br><br>
.>>
.LP
\fBzeroat\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fCtop | right | bottom | right\fR
.IP \0
Controls where a zero degree vector will point.  Default is \fCtop\fR.

.ig >>
<br><br>
.>>
.LP
\fBclockdir\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fC+ | -\fR
.IP \0
Controls whether progressively higher directional values will
cause the vector to move clockwise (\fC+\fR) or counterclockwise (\fC-\fR).
Default is \fC+\fR.



.ig >>
<br><br><br>
.>>
.SH Selecting data rows
.LP
\fBselect\fR
.ig >>
&nbsp; &nbsp;
.>>
.ig >>
<a href="select.html">
.>>
\0select expression
.ig >>
</a>
.>>
.IP \0
Select certain records for plotting, based on a conditional expression.
.br
Example: \fCselect: @@4 = B\fR

.ig >>
<br><br><br>
.>>
.SH Legend
.LP
\fBlegendlabel\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fIlabel\fR
.IP \0
Set a legend label for this set of vectors.  Legend must be displayed
later using proc legend.  The legend entry will identify the vector by showing a line segment only
(no arrowhead).
The \fC\\n\fR construct can be used to force a line break when the legend is displayed,
or the label can be wordwrapped using proc legend wraplen attribute (2.32+).

.ig >>
<br><br><br>
.>>
.SH Drawing wind barbs

Set \fCtype\fR to \fCbarb\fR.
For best results, use \fCconstantlen\fR to set the size of the barb's stem.
The original wind barbs code was contributed by Andrew Phillips.

.ig >>
<br><br>
.>>

.LP
\fBbarblimits\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fI big medium small tiny \fR
.IP \0
Sets the limits for drawing different sized barbs on the stem of a wind
barb.  The default for the big triangular barb is 50,  the medium sized
(full length, 1 line) barb is 10, small sized barb (half length) is 5,
tiny barbs are just the stem drawn half length is 2.  The tiny barbs are
not the official way to show very low wind, which normally is to draw a
dot instead, which can be done using a scatterplot and a few selects.
.br
Example: \fCbarblimits: 40 12 8 2\fR

.ig >>
<br><br>
.>>

.LP
\fBbarbdir\fR 
.ig >>
&nbsp; &nbsp;
.>>
\fId\fR
.IP \0
The angle the barbs are drawn relative to the stem, in degrees.  Default is 120.



.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>