Re: Multiple plots in one display

Hi Cameron,

> Say I have a field of mathtype (time -> (a,b))
> I can successfully plot (time vs a) or (time vs b) on a Display but
> I want to know if it possible to plot time vs a & b. 
> i.e a chart with two lines.
> Can anyone help?

To do that, convert the MathType to ((time -> a), (time -> b))
as follows:

  FlatField f = ... // MathType = (time -> (a,b))
  Tuple t = new Tuple(new Data[] {f.extract(0), f.extract(1)});

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


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