Re: 20000814: ScalarMaps - adding and removing dataReferences dynamically

Hi Henner,

> and now the next question:
> do different ScalarMaps have to have different colors?

Do you mean the color passed to Scalarmap.setScaleColor(),
which determines the color of the axis scale display?  They
do not have to have different colors.

> or what can be my problem?

Are you only seeing one scale on an axis?

> i have two functions with different ranges, they are displayed correctly each
> alone. but if i put their datareferences together in one display, there is
> always just one axis (the currency) although both samples are visible and
> the maps are added succesfully (no exceptions) to the displayImpl. they
> arent even drawn in the same position.

How are you enabling axis scales?  If you call:

  display.getGraphicsModeControl().setScaleEnable(true);

you should see axis scales for each ScalarMap to XAxis,
YAxis and ZAxis.  If you are calling:

  ScalarMap.setScaleEnable(false)

for any particular Scalarmaps, that will disable their
axis scales.  See visad/examples/Test26.java for an
example of displaying axis scales for only some of the
ScalarMaps.

If you think you've found a bug in VisAD, please send me
your code and enough data to run it.

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: