NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Tutorial P2_03

Hi Larsson,

> I have a problem with the tutorial P2_03.
> I want to draw the display with the same data but with
> the points connected to lines.
> What parts exactly do i have to change to get
> the display with lines without changing
> float[][] point_vals = new float[][]{{-3.0f, -1.5f, 0.0f, 1.5f, 3.0f,},
> {0.0f, 33.75f, 45.0f, 33.75f, 0.0f,} };.

This is what P2_02 does. Since your X values are in arithmetic
progression, you can use a Linear1DSet as in P2_02. Otherwise
you could use a Gridded1DSet.

Cheers,
Bill


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