GSET_WIN(3NCARG)
β¨ GSET_WIN β¨ (a.k.a. Set window, from the 3NCARG girlies π)
okay bestie, so this is gset_win β it's the NCAR GRAPHICS routine that establishes a window, aka a rectangular subspace, of world coordinates that's gonna get plotted. cute, right? π
but before you get too attached: calls to gset_win are discouraged with NCAR Graphics. like, the docs are literally side-eyeing you. instead, use the c_set routine, because c_set also supports mirror imaging and log scaling of axes. c_set is the main character here, fr fr. π
π SYNOPSIS π
#include <ncarg/gks.h>
void gset_win(Gint tran_num, const Glimit *win_limits);
π DESCRIPTION π
tran_numβ (Input) a normalization transformation number. how many transformations you even get is implementation specific, so don't come for me, that's just what the manpage says. in the case of NCAR GKS-0A, you get exactly two normalization transformations:0β selects the identity transformation, where 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, which means it is illegal to callgset_winwithtran_num = 0. π« like literally illegal, do not do it, the vibes will be off.1β a normalization transformation where the window is defined bywin_limits.x_mintowin_limits.x_maxandwin_limits.y_mintowin_limits.y_max. this is the one you actually want, bestie.
win_limits.x_minβ (Gfloat, Input) the left horizontal coordinate of the window. and hey,x_min < x_max, okay? that's the rule. πwin_limits.x_maxβ (Gfloat, Input) the right horizontal coordinate of the window.win_limits.y_minβ (Gfloat, Input) the bottom vertical coordinate of the window. alsoy_min < y_max, obviously, we stay consistent. β¨win_limits.y_maxβ (Gfloat, Input) the top vertical coordinate of the window.
π ACCESS π
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the entry fee, pay up. πΈ
π«Ά SEE ALSO π«Ά
Online: set(3NCARG), gset_vp(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 π¦ this 3NCARG manual page is dated March 1993 and comes to you from UNIX, GSET_WIN(3NCARG) β slay, stay hydrated, and go use c_set instead π
π¦ 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