GETSET(3NCARG)
β¨ GETSET β the NCAR Graphics glow-up β¨
okay bestie, so this is GETSET from NCAR Graphics (manual page GETSET(3NCARG), we love her) π
π NAME π
GETSET hands you back a whole set of values, and if you drop those values as arguments into a call to SET, you get normalization transformation 1, axis linear/log scaling (that's internal parameter 'LS'), and axis mirror imaging (that's internal parameter 'MI') all defined in a way that duplicates the combined effects of the current normalization transformation, axis scaling, and axis mirror imaging. like, it copies the vibe of your current setup into a fresh SET call. no cap. πͺβ¨
πΈ SYNOPSIS πΈ
CALL GETSET (VL,VR,VB,VT,WL,WR,WB,WT,LS)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_getset(float *vl, float *vr, float *vb, float *vt, float *wl,
float *wr, float *wb, float *wt, int *lf)
π DESCRIPTION π
okay so every single one of these is an output variable, meaning they're the ones doing the giving and you're the one receiving. so generous of them π«Ά
VLβ an output variable of typeREAL. she defines the left margin of the viewport, in fractional coordinates.VRβ an output variable of typeREAL. right margin of the viewport, fractional coordinates.VBβ an output variable of typeREAL. bottom margin of the viewport, fractional coordinates.VTβ an output variable of typeREAL. top margin of the viewport, fractional coordinates.WLβ an output variable of typeREAL. left margin of the window, in user coordinates this time.WRβ an output variable of typeREAL. right margin of the window, user coordinates.WBβ an output variable of typeREAL. bottom margin of the window, user coordinates.WTβ an output variable of typeREAL. top margin of the window, user coordinates.LSβ an output variable of typeINTEGER. she defines the linear/log nature of the mapping, and here's the whole menu, no skips:1β linear X, linear Y2β linear X, log Y3β log X, linear Y4β log X, log Y
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same energy, different syntax. iconic behavior, honestly. π
π₯ USAGE π₯
okay so here's the tea, and it's genuinely kind of iconic π΅:
when you're setting the limits of the viewport and the window, the left margin can have a user coordinate value that is larger than the user coordinate value at the right margin. yes, fr fr. that means the X axis scale will run from a maximum value at the left to a minimum value at the right. like, going backwards on purpose. and same situation vertically: the bottom value can exceed the top value, meaning the Y axis can run from a maximum at the bottom to a minimum at the top. π
this reversal of the axes is called "mirror imaging". πͺ
and this is not a bug, bestie, this is a substantial functional enhancement over what's provided in GKS. that's exactly why NCAR Graphics SET calls using fractional and user coordinates are, in general, preferred over GKS calls to GSVP and GSWN using normalized device coordinates and world coordinates. periodt. π
π EXAMPLES π
use the ncargex command to see the following relevant examples, all of them, in order: arex01, mpex07, mpex09, cpexcc. go look, they ate. β¨
π ACCESS π
to use GETSET or c_getset, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. the order matters, don't do your own thing here π
π SEE ALSO π
Online: gqnt, set, getusv, setusv, spps, spps_params, ncarg_cbind
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
iykyk, go read the friends too π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay that's the whole page bestie, nothing skipped, nothing dropped πβ¨
and that's a wrap on the UNIX, March 1993 edition of GETSET(3NCARG) β slay, bye, ily, go mirror some axes responsibly π¦ππ
π¦ 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