package require vtk
package require vtkinteraction

#######################################################################
# Create a reader to read the unstructured grid data. We use a 
# vtkDataSetReader which means the type of the output is unknown until
# the data file is read. SO we follow the reader with a vtkCastToConcrete
# and cast the output to vtkUnstructuredGrid.
vtkStructuredPointsReader reader 
    reader SetFileName "$VTK_DATA_ROOT/Data/lrspts.vtk"

vtkXYPlotActor xyplot
	xyplot AddInput [reader GetOutput]
    xyplot SetDataObjectXComponent 0 2
	 

