spoints(data,npoints)spoints returns an object suitable for use as a point data
object. If npoints is given, the vector data is either truncated
or repeated until sufficient data values are generated.
The returned object is a two-column matrix, where the first column stores the
x-coordinate, and the second column stores the y-coordinate.npts