Previous: setdp Up: ../plot79_s.html Next: setds3


SETDS2

       SUBROUTINE  SETDS2 (WIDTH,HEIGHT)
 C$    (Set 2-D Normalized Device Coordinate Space)
 C$    Define the normalized device coordinate  space to be a  box
 C$    of size  (WIDTH,HEIGHT,0), where  each of  the  coordinates
 C$    lies in the range 0.0..1.0.   The NDC space is left-handed,
 C$    with X  positive to  the right,  Y positive  upward, and  Z
 C$    positive away from the  observer.  The viewing volume  will
 C$    be mapped into  the NDC  space, and the  rectangle of  size
 C$    (WIDTH,HEIGHT) will be mapped  onto the viewing surface  of
 C$    the display device so that the entire rectangle is visible.
 C$
 C$    This is  sometimes useful  if the  display surface  is  not
 C$    square, and one  wishes to  maximize the size  of the  plot
 C$    which can be fit  on it.  If the  default NDC space of  the
 C$    unit cube where in effect, then the device driver would  be
 C$    forced to map NDC space into the largest square which could
 C$    fit on  the  display  surface, thus  leaving  part  of  the
 C$    display surface unused.
 C$
 C$    At least one of (WIDTH,HEIGHT)  must be unity, and  neither
 C$    may be zero.
 C$    (02-FEB-82)