vtkPLOTS Procedure
Adds a polyline.
Usage
vtkPLOTS, points
Input Parameters
points—An array of floating point numbers of size (3, n) where n is the number of points. points(0,*) is taken as an x value, points(1,*) is taken as a y value, and points(2,*) is taken as a z value.
Keywords
Name—Specifies a name to be used to create this object. If an undefined variable is used or no name specified, then a random name is used. This name can be used in calls to vtkCOMMAND to modify this object.
Color—The color to use for the polyline. See the vtkWINDOW Procedure for possible ways to specify the color. (Default: 'white')
Thick—A float describing the thickness of the polyline. The default is 1.0, which is scaled to correspond to a radius of 0.001 in data coordinates.
LOD—If nonzero, a level-of-detail actor is created to aid in keeping a high frame-rate during frequent render requests due to user mouse interaction. If greater than 1, the number of points to use in the random cloud.
Nolines—If nonzero, displays a cloud of points rather than a polyline.
Line—If nonzero plot the polyline as a 1D line instead of the 3D cylinder. Due to the effects of light source shading, the 3D cylinder may not be useful for all visualizations. Default=0
Discussion
This procedure is similar to the PLOTS procedure for PV-WAVE. By default, polylines are drawn as connected cylinders. The Line keyword disables the default cylinder display and uses a simple line to connect the data points. Adding the Nolines keyword will display the data points themselves with no connected cylinders or lines between the data points.
Example
z = findgen(1000)/999
x = z*sin(50*z)
y = z*cos(50*z)
vtkplots, transpose([[x],[y],[z]]), thick=5, color='blue'
vtkwindow,2
vtkplots, transpose([[x],[y],[z]]), color='red',/nolines
See Also