| fieldplot | stsdas.graphics.stplot | fieldplot |
fieldplot -- Plot vector field data.
fieldplot
This task draws a plot of a vector field with symbols representing the magnitude and direction of the vector at any number of positions in a two-dimensional field. These plots are sometimes known as "hedgehogs." Symbols consist of a line whose length is proportional to the magnitude of the field at the specified direction. Optionally, an arrow head may be drawn to indicate the direction and a marker may be drawn at each coordinate.
Data consist of four values: X position, Y position, magnitude, and direction. Alternately, the vector may be specified by projecting the magnitude along the X and Y axes. Comments, indicated by a hash mark ("#") in the first column, and blank lines are ignored. Any line containing fewer than four values is ignored. Values beyond the fourth, on any line, are ignored.
If the parameter `rtheta = true', the vectors are assumed to be specified by magnitude (r) and direction (theta). The magnitude is assumed to be in the same units and scale as the X and Y coordinate data. The direction angle is specified counterclockwise from the horizontal (positive X). If the parameter `degrees = true', directions are assumed to be in degrees, otherwise, they are in radians. If `rtheta = false', projected magnitudes are assumed to be in the same units and scale as the X and Y coordinate data.
2 square box
4 plus
8 cross
16 diamond
32 horizontal line
64 vertical line
128 horizontal error bar
256 vertical error bar
512 circle
No marker is plotted if `psnmark = INDEF' or `psnmark = 0', or
zeroplot=no and the vector magnitude is zero.
If `zeroplot=yes', then at least a dot and the symbol marker will be drawn (if `psnmark' specifies a symbol). If `zeroplot=no', then nothing will be drawn for any vector whose magnitude is zero. However, the data coordinates still determine the overall plot scale.
The default, "yes", will draw and label coordinate axes. This will also rescale the plot to make a margin allowing room to draw the axes. If you wish to overlay a plot registered with an image, you should set `axes=no' and `margin=no'.
If you wish to overlay a plot registered with an image, you should set `axes=no' and `margin=no'.
1. Draw arrows representing a vector field. The data are in a file named field.dat and represent projections of the vectors:
20.4 72.9 73.3 47.3 52.5 36.9 6.85 41. 5.89 10.2 23.5 17.8 88.7 37.9 27.6 8.48 69.1 31.5 94.1 27.8 25. 40.8 57.8 88.8 78.4 0.138 55. 52. 12.5 83. 39.8 67.7 17.5 48. 46.4 22.9 62.8 12.4 20. 50. st> fieldplot field.dat rtheta-