Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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
>
>
>


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690