Hi Romaric,
You could also add a ScalarMap of "Frequence" to Display.SelectRange and
do a setRange(400000, 450000) on it.
Cheers,
Doug
Bill Hibbard wrote:
>
> Hi Romaric,
>
> > If I change the Range of Xaxis or Yaxis , its overflows on the border of
> > the graph.
> > Is there a method to maintain the curves in the graph ?
> > I join a little very small () image to make you well understand ( you can
> > see my problem at the bottom letf and right).
>
> Try calling:
>
> display.reAutoScale();
>
> before you change your data values, or calling:
>
> display.setAlwaysAutoScale(true);
>
> at the start.
>
> However, if you are calling setRnage() on your ScalarMaps to
> XAxis and YAxis and just want to clip the data outside the
> box, try calling setClip() on your DisplayRenderer. This
> method has different signatures for DisplayImplJ2D and
> DisplayImplJ3D - see Test34.java for DisplayImplJ2D and
> Test35.java in DisplayImplJ3D in visad/examples to see how
> to call it.
>
> Good luck,
> Bill
--
*----------------------------------------------------------------------*
| 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 |
*----------------------------------------------------------------------*