SETUSV(3NCARG)
β¨ SETUSV β¨
okay bestie, welcome to NCAR GRAPHICS land π this one lives in section 3NCARG, and it's a lil cutie that pokes at the internals of SPPS. sit down, grab a strawberry π, we're doing this.
πΈ NAME πΈ
SETUSV β sets the value of one of the internal parameters of SPPS.
like, it reaches into the guts of SPPS and flips a switch. no big deal. iconic behavior honestly π
β¨ SYNOPSIS β¨
CALL SETUSV (VN,IV)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_setusv (char *vn, int iv)
π DESCRIPTION π
VNβ an input constant or variable of typeCHARACTER, and it's the name of a parameter. heads up: only the first two characters are meaningful, so don't come at it with a whole essay. and remember, bestie, in FORTRAN a constant of typeCHARACTERis a string of characters wrapped in apostrophes. periodt.IVβ an input expression of typeINTEGER, and it's the desired new value of the parameter thatVNpoints at. which parameter takes which numbers? glad you asked, look at this π
π the parameters, decoded π
'LS'β Axis scaling, aka the "Log Scaling" flag:1= linear X, linear Y2= linear X, log Y3= log X, linear Y4= log X, log Y
'MI'β Axis direction reversal, aka the "MIrroring" flag β that's when the axis goes from maximum to minimum rather than min to max:1= neither X nor Y2= X, but not Y3= Y, but not X4= both X and Y
'MU'β Metacode output Unit. possible value:2'PB'β Pen-move Buffer size. possible values:2to50
k so here's the tea β: both 'LS' and 'MI' are normally set by calling the routine SET, but you can set them independently by calling SETUSV. independent queen energy π
the parameter 'MU' gets set prior to calling OPNGKS, and it changes the FORTRAN logical unit number that GKS uses for metacode output.
the parameter 'PB' sets the size of the SPPS polyline buffer. and ngl, the value "2" effectively turns buffering off. just so you know. π«Ά
π the obsolete parameters π
these ones are giving "retired but still in the group chat." here's the whole list, no cap:
'XF'β X axis exponent for plotter coordinates. (The PAU range would be1to2**XF - 1in X)'YF'β Y axis exponent for plotter coordinates. (The PAU range would be1to2**YF - 1in Y)'IR'β Red color intensity (relative to green and blue)'IG'β Green color intensity (relative to red and blue)'IB'β Blue color intensity (relative to red and green)'IM'β Maximum color index to be used'IN'β Overall color intensity'II'β Restore color index'LW'β Line width scale factor in thousandths (2000means double the default line width)'MS'β Marker size in thousandths (2000means double the default marker size)
so the values of the parameters 'XF' and 'YF' are the exact same as the values of the arguments IX and IY in calls to the routines SETI and GETSI. matching set, we love to see it β¨
now. the parameters 'IR', 'IG', 'IB', 'IM', 'IN', and 'II' were all part of a color-setting scheme that was meant to let you set overall intensity independently of color. that scheme is now obsolete π it got replaced by normal GKS color setting through the routines GSCR, GSPLCI, GSFACI, GSPMCI, and GSTXCI. and if you wanna ask about the current color settings, the corresponding GKS inquiry routines are GQCR, GQPLCI, GQFACI, GQPMCI, and GQTXCI. go read Section 6 of "User's Guide for NCAR GKS-0A Graphics." iykyk π
the parameter 'LW' is replaced by the GKS line width scale factor routine, GSLWSC, which has the corresponding query function GQLWSC.
the parameter 'MS' is replaced by the GKS marker size scale factor routine, GSMKSC, which has the corresponding query function GQMKSC.
lowkey important: all of the above are marked obsolete in the original, so please don't build your whole personality on them. use the GKS replacements bestie π₯Ί
π¦ C-BINDING DESCRIPTION π¦
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical, we're not doing the whole thing twice π
β EXAMPLES β
Use the ncargex command to see the following relevant examples: (none).
yeah. (none). i know. the audacity π but that's what it says, so that's what you get.
π ACCESS π
To use SETUSV or c_setusv, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, bestie, don't be chaotic about it π
π SEE ALSO π
Online: gscr, gsplci, gsfaci, gspmci, gstxci, gsmksc, gslwsc, spps, spps_params, getset, getsi, getusv, plotif, set, setsi, ncarg_cbind
Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π 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 was the UNIX version of SETUSV(3NCARG) from March 1993 β yes, before you were born, and it's still serving. slay. π
β¨
π¦ 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