Re: reAutoScale

Bill wrote:

> > I have a simple time series plot with some field (e.g. temperature)
> > plotted vs. time for several surface stations. Auto scaling does the
> > right thing when I add data to the Display and I seem to recall it doing
> > the right thing when I remove DataReferences from the Display. However,
> > now I am using the DataRenderer.toggle method to turn off my data. Even
> > if I call the Display's reAutoScale method, it doesn't auto scale. 
> > 
> > Is this a bug? Should calling DataRenderer.toggle( false ) cause the
> > Display to reAutoScale? Or should a call to reAutoScale at least look at
> > the toggled state before using the data for auto scaling?
> 
> No, the reAutoScale() method only says to auto-scale the
> next time data are transformed into geometry. Follow that
> call by a call to DisplayImpl.reDisplayAll() to trigger the
> transform.

I am now calling reAutoScale() and reDisplayAll() after calling
DataRenderer.toggle( false ). The axes do not rescale. (I'm pretty sure
that I never called setRange on the ScalarMaps.) Is the DataRenderer's
enabled state considered when auto scaling is doing its thing? Should
it?

Thanks,
Doug

-- 
*----------------------------------------------------------------------*
| Doug Lindholm, Software Engineer          |  E-mail: lind@xxxxxxxx   |
| Research Applications Program             |   Phone: 303-497-8374    |
| National Center for Atmospheric Research  |                          |
| P.O. Box 3000                             |     There's no place     |
| Boulder, Colorado 80307-3000              |        like $HOME        |
*----------------------------------------------------------------------*


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