Re: Scaling functions

On Wed, 16 Jan 2002, EL-CHAAR RABIH wrote:
> My question is the following :
> VISAD enables to change the scales and the ranges of any function domain.
> Nevertheless, each time i plot a function, it is always inside a square(and
> not rectangular) box.
> 
> Is there is a way to enable scaling inside a rectangle and not a square ?

Yes, as follows:

  double[] box_aspect = {1.0, 0.5, 2.0}; // one example
  ProjectionControl pc = display.getProjectionControl();
  pc.setAspectCartesian(box_aspect);

Good luck,
Bill


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