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: plotting two data set on the same display

Johnson, I can't think of an exmaple that does this (it may
just be my memory failing), but its easy enough to do.
Construct two FlatFields with MathType (x -> y), assuming
y is a function of x [otherwise you may need to construct
FlatFields with MathType (index -> (x, y)) or two Sets with
MathType Set(x, y)]. Then link both to the same DisplayImpl
by constructing DataReferences for each which are passed to
two calls to display.addReference(). The DisplayImpl would
have ScalarMaps x -> XAxis and y -> YAxis.

Good luck,
Bill
p.s., This is even easier in Python.

On Mon, 15 Nov 2004, johnson abraham wrote:

> Hi,
> Iam trying to plot two different datasets of same x values but different
> y values
> on the same display on a frame. Is there any example which can explain
> how to do it.
>
> please help me
> Thank you
>
> cheers,
> Johnson Abraham
>
>
>


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