Re: newbie question - mutiple scales

Hi John,

> Is it possible to produce plots with more than one axis scale in the
> same direction?  That is, if you have two or more RealTypes mapped to
> the same domain, is it possible to plot them in the same visualization
> space?  If so, how?

Yes, it is possible.  There's a nice example with display2
in visad/paoloa/GoesCollaboration.java, between lines 532
and 556.  The setScaleEnable(true) call on GraphicsModeControl
enables scales for all RealTypes mapped to XAxis, YAxis and
ZAxis.  In display2, the RealTypes temp, mixr, ozone and
pressure are all mapped to XAxis.  The setScaleColor() method
of ScalarMap is used to set the color of each scale.

Cheers,
Bill
p.s., GoesCollaboration calls some Fortran native code so only
runs on Sparc Solaris.
----------------------------------------------------------
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


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