PCSETC(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– PCSETC β€” bestie, let's set a character parameter πŸ’–

okay so this is PCSETC, a lil routine from the NCAR Graphics crew (manual section 3NCARG, if you're keeping track πŸŽ€). Short version: it hands a brand-new character value to an internal parameter you pick. it's giving "glow up, but for a parameter." ✨


✨ SYNOPSIS ✨

CALL PCSETC (PNAM,CVAL)

🌈 C-BINDING SYNOPSIS 🌈

#include <ncarg/ncargC.h>

void c_pcsetc (char *pnam, char *cval)

πŸ’… DESCRIPTION πŸ’…

  • PNAM β€” an input constant or variable of type CHARACTER, and it's the name of the parameter you wanna set. the name has to sit in the first two characters of the string, no cap. now here's the tea: if the internal parameter is one of the two that are arrays β€” those would be Β΄BCΒ΄ and Β΄CCΒ΄ β€” then you can drop the index of the array element you want, wrapped in parentheses, in columns 3 and following. and honestly? the rest of the characters are yours to vibe with. they're just there to document what the parameter is doing. like, instead of just Β΄MAΒ΄, you can write Β΄MA - MAPPING FLAGΒ΄, and instead of Β΄CC(10)Β΄, you can write Β΄CC(10) - SPECIAL COLOR 10Β΄. cute AND informative, we love that for us 🫢
  • CVAL β€” an input constant or variable of type CHARACTER, and it's the value that gets assigned to the internal parameter that PNAM pointed at. that's it, that's the whole job.

🌸 C-BINDING DESCRIPTION 🌸

the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. same energy, different language. πŸ’œ


πŸ”₯ USAGE πŸ”₯

this routine lets you set the current value of Plotchar parameters. obsessed. for the complete list of parameters available in this utility, go check out the plotchar_params man page β€” it's the whole menu, bestie. πŸ‘‘


πŸ¦‹ EXAMPLES πŸ¦‹

wanna see it in the wild? use the ncargex command to peep these relevant examples:

  • coex02
  • coex03
  • epltch
  • fcoord1
  • fcoord2
  • fpcfonts
  • fpchiqu
  • fslfont

πŸŽ€ ACCESS πŸŽ€

to use PCSETC or c_pcsetc, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” and preferably in that order. don't be chaotic about it. πŸ’…


πŸ’€ MESSAGES πŸ’€

for a description of all the Plotchar error messages and/or informational messages, see the plotchar man page. all the drama lives there. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

Online: plotchar, plotchar_params, pcdlsc, pcgetc, pcgeti, pcgetr, pchiqu, pcloqu, pcmequ, pcmpxy, pcpnwi, pcrset, pcseti, pcsetr, ncarg_cbind.

Hardcopy: NCAR Graphics Fundamentals, UNIX Version


Copyright (C) 1987-2009 University Corporation for Atmospheric Research

the use of this Software is governed by a License Agreement. (read it, bestie, fr fr πŸ™ˆ)


ok that's the whole page!! now go set some parameters and slay. periodt. πŸ’–βœ¨

UNIX Β· March 1993 Β· PCSETC(3NCARG) β€” mwah, that's the vintage, and this manual page is officially signed off πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from