diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/gio/gks/gsvp.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gks/gsvp.x')
-rw-r--r-- | sys/gio/gks/gsvp.x | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/gio/gks/gsvp.x b/sys/gio/gks/gsvp.x new file mode 100644 index 00000000..f2a61711 --- /dev/null +++ b/sys/gio/gks/gsvp.x @@ -0,0 +1,30 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gset.h> +include "gks.h" + +# GSVP -- Set viewport. This procedure sets the viewport for world coord +# sys "wcs", which may not be the current WCS. + +procedure gsvp (wcs, x1, x2, y1, y2) + +int wcs # Number of world coordinate system +real x1, x2 # Range of viewport coordinate in x (NDC) +real y1, y2 # Range of viewport coordinate in y (NDC) + +int current_wcs, i +int gstati() +include "gks.com" + +begin + current_wcs = gstati (gp[gk_std], G_WCS) + call gsawi (G_WCS, wcs) + + do i = 1, NDEV { + if (gk_status[i] == ACTIVE) + call gsview (gp[i], x1, x2, y1, y2) + } + + # Now return to the current WCS + call gsawi (G_WCS, current_wcs) +end |