PCSETR(3NCARG)
π PCSETR β the NCAR Graphics girlie's guide π
okay so bestie, welcome to PCSETR from the NCAR Graphics manual (3NCARG, she's an icon, she's been serving since 1987 β¨). This one's short and sweet: it sets an internal parameter. That's it. That's the whole vibe. But let's do it properly because we don't do sloppy here π
β¨ NAME β¨
PCSETR β sets the value of an internal parameter of type REAL or INTEGER. fr fr, that's the job description π«Ά
πΈ SYNOPSIS πΈ
CALL PCSETR (PNAM,RVAL)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_pcsetr (char *pnam, float rval)
π DESCRIPTION π
PNAMβ an input constant or variable of typeCHARACTER, and it's the name of the parameter you're setting. The way this works: the name has to show up as the first two characters of the string. Now if the internal parameter you're after is one of the two array ones (BCandCC), you can also drop the index of the array element you want, wrapped in parentheses, starting in column 3 and onward π. And here's the cute part β the leftover characters are yours to use as documentation for what that parameter is doing. Like, instead of justMAyou can writeMA - MAPPING FLAG, and instead ofCC(10)you can writeCC(10) - SPECIAL COLOR 10. Lowkey a little self-documenting moment, we love that for us πRVALβ an input expression of typeREAL, and it's the value getting assigned to whatever internal parameterPNAMpoints at. Here's the tea tho: if that internal parameter is of typeREAL, the value it gets isRVAL. But if the internal parameter is of typeINTEGER, then what it actually gets isINT(RVAL). No cap, it just truncates like that π
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. Same energy, different wrapper π
π USAGE π
This routine lets you set the current value of Plotchar parameters. And if you want the complete list of parameters available in this utility, go read the plotchar_params man page β she has the full menu, bestie, go check her out π
π EXAMPLES π
Use the ncargex command to see the following relevant examples: elblba, cbex01, epltch, tconpa, tlblba, fpcfonts, fpchiqu. Seven of them. Go look, they ate π₯
π ACCESS π
To use PCSETR or c_pcsetr, you load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order, okay? In that order. Trust the process π«Ά
π MESSAGES π
See the plotchar man page for a description of all Plotchar error messages and/or informational messages. If something's wrong, she'll tell you β¨
π SEE ALSO π
Online: plotchar, plotchar_params, pcdlsc, pcgetc, pcgeti, pcgetr, pchiqu, pcloqu, pcmequ, pcmpxy, pcpnwi, pcrset, pcsetc, pcseti, ncarg_cbind.
Hardcopy: 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.
okay that's the whole page bestie, you're officially a PCSETR expert, main character energy only πβ¨π¦
signing off from the UNIX manual, March 1993, page PCSETR(3NCARG) β yeah she's vintage but she's still serving ππ π
π¦ 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