Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Aspect ratio question -- in DisplayImplJ2D

Hi Tolga-

Since you are mapping directly to X and Y axis, you might want to use
ProjectionControl.setAspectCartesian() instead of setAspect() so your
AxisLabels won't be distorted.  

Don

> Tolga Sakman wrote:
> 
> Hello Visad team/users; a short question this time:
> 
> I have two ScalarMaps. If their ranges are n to m (like 0 to 1) the
> display is a square, which is what it should be. However when it is a
> different aspect ratio (like YAxis is from 0 to 1, but XAxis is from 0
> to 5) the display is still a SQUARE, whereas I should see a rectangle
> of 1/6 aspect ratio.
> 
> How can you keep the aspect ratio?
> 
> Thanks in adavance,
> 
> Tolga

-- 
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


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