PWRITX(3NCARG)
๐ PWRITX ๐ โ the NCAR Graphics one, bestie
okay so this is PWRITX(3NCARG) from the NCAR GRAPHICS manual, and it's a whole mood. Let's get into it. ๐
โจ NAME โจ
PWRITX โ draws text and other characters using polylines. That's it, that's the girl. ๐
๐ ๏ธ UTILITY ๐ ๏ธ
This routine is part of the Pwrite_family utility in NCAR Graphics. Wanna see the overview man page for this utility? Type:
man pwrite_family
iykyk ๐
๐จ STATUS ๐จ
PWRITX is obsolete. Not me being the bearer of bad news but fr fr, she's been replaced. ๐
It has been replaced by the PLCHHQ, PLCHMQ, and PLCHLQ entries of the Plotchar utility.
PWRITX continues to be provided for compatibility of early NCAR Graphics codes. So like, if you're writing new code, we suggest that you use Plotchar. Please bestie, use Plotchar. ๐ซถ
๐ SYNOPSIS ๐
CALL PWRITX (X,Y,IDPC,NCHAR,JSIZE,JOR,JCTR)
that's the whole summoning ritual right there โจ
๐ DESCRIPTION ๐
Let's go through every single one of these, no skipping, periodt. ๐
Xโ an input parameter of typeREALdefining the X world coordinate of the text string to be drawn using polylines.Yโ an input parameter of typeREALdefining the Y world coordinate of the text string to be drawn using polylines.IDPCโ an input string of typeCHARACTERwhich are the characters to be drawn. There may also be embedded function codes describing how certain characters are to be drawn. (sneaky little bonus codes, love that for them ๐ฆ)NCHARโ an input parameter of typeINTEGERgiving the number of characters in theIDPCstring. Heads up:NCHARincludes a count of all characters in the string, including the function codes. So don't be out here undercounting, bestie. ๐ญJSIZEโ an input parameter of typeINTEGERgiving the width of the characters to be drawn. And here's the little menu:0โ1.0 *the size of the digitized characters in the database1โ1.5 *digitized size2โ2.0 *digitized size3โ3.0 *digitized size
If greater than 3:
Principal characters = JSIZE
Indexical characters = (13/21)*JSIZE
Cartographic characters = ( 9/21)*JSIZE
One can relate these sizes to a viewport in normalized device coordinates (each axis runs 0. to 1.) by dividing by 1023. That is a character of width .05 would take up 5% of the possible picture width meaning that less than 20 characters could fit on a line. math girlie behaviour, we respect it ๐งฎโจ
Important!! Note that there is an important difference in how text sizes are handled in GKS versusPWRITX. In GKS, text size is given in terms of character heights. InPWRITX, text size (JSIZE) is given in character width. Do not confuse these, I am begging you. ๐ญ
JORโ an input parameter of typeINTEGERgiving the orientation at which theIDPCstring is to be drawn.JORis measured counter-clockwise from the positive X axis. spin it, rotate it, slay it ๐ซJCTRโ an input parameter of typeINTEGERgiving the centering option for theIDPCcharacter string.0โ(X,Y)is the center of the entireIDPCstring.-1โ(X,Y)is the center of the left edge of the first character.1โ(X,Y)is the center of the right edge of the last character.
three centering options, three vibes, pick your main character energy ๐
๐ ACCESS ๐
To use PWRITX, load the NCAR Graphics libraries ncarg, ncarg_gks, ncarg_c, and ncarg_c โ preferably in that order. (yes, ncarg_c shows up twice in the original list, and I am simply reporting the facts, bestie ๐)
๐ SEE ALSO ๐
- Online:
pwrite_family,pwrity,plotchar,plchhq,plchmq,plchlq - Hardcopy:
NCAR Graphics Fundamentals, UNIX Version;User's Guide for NCAR GKS-0A Graphics
go read the whole family, they're all iconic ๐ซถ
ยฉ๏ธ 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 tea, bestie ๐ This lil gem dropped back in March 1993 under the UNIX manual, straight from the NCAR Graphics crew โ so if you're out here calling PWRITX, you're basically running vintage. Vintage is a vibe, but fr fr go use Plotchar. ๐โจ๐
๐ฆ 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