1GSVP(3NCARG)                     NCAR GRAPHICS                    GSVP(3NCARG)
2
3
4

NAME

6       GSVP  (Set viewport) - establishes a rectangular subspace of normalized
7       device coordinates space. Calls  to  GSVP  are  discouraged  with  NCAR
8       Graphics.  Instead,  use  the  SET subroutine because SET also supports
9       mirror imaging and log scaling of axes.
10

SYNOPSIS

12       CALL GSVP (TRNUM, XMIN, XMAX, YMIN, YMAX)
13

C-BINDING SYNOPSIS

15       #include <ncarg/gks.h>
16
17       void gset_vp(Gint tran_num, const Glimit *vp_limits);
18

DESCRIPTION

20       TRNUM       (Integer, Input) - A normalization  transformation  number.
21                   The  number  of available transformations is implementation
22                   specific. In the case of  NCAR  GKS-0A,  two  normalization
23                   transformations are provided:
24
25                   0      Selects  the  identity  transformation in which both
26                          the window and viewport have the range of 0.  to  1.
27                          in  both coordinate directions.  This is the default
28                          normalization transformation for  GKS.  It  is  also
29                          fixed  within  GKS;  that  is, it is illegal to call
30                          GSVP with TRNUM = 0.
31
32                   1      A normalization transformation in which the viewport
33                          is defined by XMIN to XMAX and YMIN to YMAX.
34
35       XMIN        (Real, Input) - The left horizontal coordinate of the view‐
36                   port.
37
38       XMAX        (Real, Input) - The  right  horizontal  coordinate  of  the
39                   viewport.  0. ≤ XMIN < XMAX ≤ 1.
40
41       YMIN        (Real, Input) - The bottom vertical coordinate of the view‐
42                   port.
43
44       YMAX        (Real, Input) - The top vertical coordinate  of  the  view‐
45                   port.  0. ≤ YMIN < YMAX ≤ 1.
46
47       Defaults:   TRNUM = 0, XMIN = 0.0, XMAX = 1.0, YMIN = 0.0, YMAX = 1.0
48

ACCESS

50       To use GKS routines, load the NCAR GKS-0A library ncarg_gks.
51

SEE ALSO

53       Online: set, gswn, gselnt, gqclip, gset_vp
54
55       Hardcopy:  NCAR  Graphics  Fundamentals, UNIX Version; User's Guide for
56       NCAR GKS-0A Graphics
57
59       Copyright (C) 1987-2007
60       University Corporation for Atmospheric Research
61
62       This documentation is free software; you  can  redistribute  it  and/or
63       modify  it  under  the  terms of the GNU General Public License as pub‐
64       lished by the  Free  Software  Foundation;  either  version  2  of  the
65       License, or (at your option) any later version.
66
67       This  software  is  distributed in the hope that it will be useful, but
68       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
69       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
70       Public License for more details.
71
72       You should have received a copy of the GNU General Public License along
73       with  this  software;  if  not,  write to the Free Software Foundation,
74       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
75
76
77
78UNIX                            14 January 1992                   GSVP(3NCARG)
Impressum