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

Re: "resetting" of axes, colorscales when data changes

Hi Donna,

You can invoke DisplayImpl.reAutoScale() before each time
you invoke DataReference.setData(), or you can just invoke
DisplayImpl.setAlwaysAutoScale(true) once. Note you can
prevent your DisplayImpl from auto-scaling a particular
ScalarMap by invoking its setRange() method.

Cheers,
Bill

On Wed, 18 Dec 2002, Donna L Gresh wrote:

> Well since I've gotten such quick and useful help for my previous two
> questions, I thought I'd try your patience once more and see if there's an
> easy solution to my current problem. I have data which is changing, on
> input from a user (in simple terms, I'm extracting subsets from a database
> and using the data to create surfaces in three-dimensions for display).
> I've set things up so that I just change the DataReference object and, just
> as advertised, the Display automatically updates which is great. However,
> there are other aspects of the display that don't automatically update when
> this happens, specifically the limits on the axes and the color mapping
> (i.e. if the values being mapped to color are much bigger for the second
> subset, everything ends up red). Is there a simple way to reset these two
> characteristics so that they are "rescaled" to the new data, without going
> in and setting everything by hand programatically?
>
> Thanks
> Donna
>
>
> Donna L. Gresh, Ph.D.
> IBM T.J. Watson Research Center
> (914) 945-2472
> http://www.research.ibm.com/people/g/donnagresh
> gresh@xxxxxxxxxx
>
>


 
 
  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