GSET_VP(3NCARG)
π GSET_VP π β the gset_vp page from NCAR Graphics (3NCARG), bestie edition
okay so you found the gset_vp manpage, welcome, sit down, we're doing this π«Ά
β¨ NAME β¨
gset_vp (aka Set viewport) β it establishes a rectangular subspace of normalized device coordinates space. π
real talk though: calls togset_vpare discouraged with NCAR Graphics. Instead, use thec_setroutine, becausec_setalso supports mirror imaging and log scaling of axes. like, it just does more, okay? π
π SYNOPSIS π
#include <ncarg/gks.h>
void gset_vp(Gint tran_num, const Glimit *vp_limits);
look at her. iconic signature. no notes. β¨
πΈ DESCRIPTION πΈ
okay so here's the whole vibe check on the arguments:
tran_numβ (Input) a normalization transformation number. The number of available transformations is implementation specific. 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. π« like do not do it. it will not slay.1β a normalization transformation in which the viewport is defined byvp_limits.x_mintovp_limits.x_maxandvp_limits.y_mintovp_limits.y_max. this is the one you actually want, bestie π
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. π
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. π
0.β€vp_limits.y_min<vp_limits.y_maxβ€1.
and the defaults, because of course we need the defaults, the defaults are giving "we didn't touch anything and it still works":
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 π
π¦ ACCESS π¦
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. both. not one. both. π§
π 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
go read them, fr fr, they're the group chat you wanna be in πβ¨
π 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 page, bestie π
this one shipped on UNIX, dated March 1993, and it lives in the GSET_VP(3NCARG) manual β so if you ever forget any of it, that's exactly where to find her again. mwah ππ
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms