Re: How to draw a line

Hi Gaoming,

>     I used Irregular2DSet to draw my data. I also used its valueToInterp 
> method to
> interpolate some points. Now I want to draw these interpolated points as one 
> line
> instead of surface in the same Coordinate system of my original data.

Use the locations of the interpolated points to construct a
Gridded2DSet with manifold dimension = 1. You can see an
example of this constructor in visad/examples/Rivers.java
(which then combines several such Gridded2DSets into a
UnionSet to get several lines, but you don't need that step).

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: