GSVP(3NCARG)
π GSVP π β the set-viewport girlie of NCAR Graphics
okay so bestie, this page is GSVP(3NCARG) from the NCAR Graphics manuals, and it's literally all about carving out a lil rectangular subspace for yourself. let's get into it β¨
β¨ NAME β¨
GSVP (Set viewport) β establishes a rectangular subspace of normalized device coordinates space.
real talk tho: calls to GSVP are discouraged with NCAR Graphics. instead, use the SET subroutine, because SET also supports mirror imaging and log scaling of axes. like, SET is the main character here and GSVP is giving side quest energy π
π SYNOPSIS π
CALL GSVP (TRNUM, XMIN, XMAX, YMIN, YMAX)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/gks.h>
void gset_vp(Gint tran_num, const Glimit *vp_limits);
πΈ DESCRIPTION πΈ
TRNUM
(Integer, Input) β a normalization transformation number. the number of available transformations is implementation specific, iykyk. in the case of NCAR GKS-0A, two normalization transformations are provided:
0β selects the identity transformation, in which both the window and the viewport have the range of0.to1.in both coordinate directions. this is the default normalization transformation for GKS. it's also fixed within GKS β that is, it is illegal to callGSVPwithTRNUM = 0. so don't even try it bestie, that's not the vibe π1β a normalization transformation in which the viewport is defined byXMINtoXMAXandYMINtoYMAX. this is the one you actually get to customize, slay β¨
XMIN
(Real, Input) β the left horizontal coordinate of the viewport. π
XMAX
(Real, Input) β the right horizontal coordinate of the viewport. π
0. β€ XMIN < XMAX β€ 1.
YMIN
(Real, Input) β the bottom vertical coordinate of the viewport. π
YMAX
(Real, Input) β the top vertical coordinate of the viewport. π
0. β€ YMIN < YMAX β€ 1.
not me stressing that these inequalities are strict βXMINandYMINcan't equal their max counterparts, no cap π«Ά
Defaults:
TRNUM = 0, XMIN = 0.0, XMAX = 1.0, YMIN = 0.0, YMAX = 1.0
so if you change nothing, you're literally just vibing at the full identity transformation. iconic.
π₯ ACCESS π₯
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole tea π
π SEE ALSO π
Online: set, gswn, gselnt, gqclip, gset_vp
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
go read those too, bestie, they ate π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
the use of this Software is governed by a License Agreement. π
and that's the whole page, fr fr. this was UNIX, 14 January 1992, GSVP(3NCARG) β a true vintage queen from way back, still serving viewport realness. mwah πβ¨
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms