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

Range Dilemma


Greetings,

I appear to have a display range dilemma. I know I can cut off the range of a ScalarMap by doing the following:

    // limit ranges of plotted lines to 400 (x) and 25 (y)
    yRangeMap = new ScalarMap( h, Display.SelectRange);
    xRangeMap = new ScalarMap( s, Display.SelectRange);

    RangeControl yRangeControl = (RangeControl) yRangeMap.getControl();
    RangeControl xRangeControl = (RangeControl) xRangeMap.getControl();

    double[] yRange = {0.0, 25.0};
    yRangeControl.setRange(yRange);
    double[] xRange = {0.0, 400.0};
    xRangeControl.setRange(xRange);

Using this technique, I'm sure I can fill in the remaining corner of the display outline ( upper right corner of this image: http://www.cimms.ou.edu/~kmanross/VCPRPE/Irreg2DSet.gif ).

However, if I use this technique, I am unable to display the labels in the right panel of this image:
http://www.cimms.ou.edu/~kmanross/VCPRPE/VCPRPE_AllBeams.gif

Is there a way that I can fill in the upper right corner (inside the border) of the first image while keeping the labels outside the display border like the 2nd image?

Many thanks!

-kevin.


--
+------------------------------------------------------------+
Kevin L. Manross        [KD5MYD] <><          (405)-366-0557
CIMMS Research Associate               kevin.manross@xxxxxxxx
[NSSL-WRDD/SWATN]           http://www.cimms.ou.edu/~kmanross

"My opinions are my own and not representative of CIMMS, NSSL,
 NOAA or any affiliates"
+------------------------------------------------------------+


 
 
  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