GSET_VP(3NCARG)
π GSET_VP β bestie, we're setting the viewport π
okay so this is a page from the NCAR GRAPHICS manual set, and the routine is gset_vp (say it with me: set viewport). It establishes a rectangular subspace of normalized device coordinates space. That's the whole job. She's simple. She's iconic. π
but FIRST, a heads up that's giving caution tape:
Calls togset_vpare discouraged with NCAR Graphics. Instead, use thec_setroutine, becausec_setalso supports mirror imaging and log scaling of axes. So likeβ¦ she works, but her cousin eats. π«Ά
β¨ SYNOPSIS β¨
#include <ncarg/gks.h>
void gset_vp(Gint tran_num, const Glimit *vp_limits);
πΈ DESCRIPTION πΈ
tran_numβ (Input) a normalization transformation number. The number of available transformations is implementation specific, so it depends on who you ask, bestie. In the case of NCAR GKS-0A, two normalization transformations are provided:0β selects the identity transformation, in which both the window and viewport have the range of0.to1.in both coordinate directions. This is the default normalization transformation for GKS. It is also fixed within GKS β that is, it is illegal to callgset_vpwithtran_num = 0. not her being off-limits π1β a normalization transformation in which the viewport is defined byvp_limits.x_mintovp_limits.x_maxandvp_limits.y_mintovp_limits.y_max.
vp_limits.x_minβ (Real, Input) the left horizontal coordinate of the viewport. πvp_limits.x_maxβ (Real, Input) the right horizontal coordinate of the viewport. Constraint check:0. β€ vp_limits.x_min < vp_limits.x_max β€ 1.πvp_limits.y_minβ (Real, Input) the bottom vertical coordinate of the viewport. πvp_limits.y_maxβ (Real, Input) the top vertical coordinate of the viewport. Constraint check:0. β€ vp_limits.y_min < vp_limits.y_max β€ 1.π- Defaults:
tran_num = 0,vp_limits.x_min = 0.0,vp_limits.x_max = 1.0,vp_limits.y_min = 0.0,vp_limits.y_max = 1.0
so if you just vibe and change nothing, you get the whole unit square. cozy. π
π ACCESS π
To use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's it, that's the whole ritual. β¨
π¦ SEE ALSO π¦
Online: set(3NCARG), gset_win(3NCARG), gsel_norm_tran(3NCARG), ginq_clip(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
π 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, bestie β go set that viewport, slay responsibly, and remember: the docs said gset_vp is discouraged, so maybe hit up c_set instead. periodt. πβ¨
this lil manual page came from the UNIX manual, dated March 1993, and it's the GSET_VP(3NCARG) page from NCAR Graphics β old but iconic, fr fr. π
π¦ 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