PWRITY(3NCARG)
β¨ PWRITY β¨
okay bestie, sit down, we're talking about PWRITY from NCAR GRAPHICS π this is a 3NCARG man page and it's lowkey a fossil but we're gonna love her anyway
π NAME π
PWRITY β draws text and other characters using polylines. no cap, that's the whole gig π
π§ UTILITY π§
This routine is part of the Pwrite_family utility in NCAR Graphics. Wanna see the big-picture overview man page for the whole utility? Just type:
man pwrite_family
that's it, that's the vibe π¦
π STATUS π
PWRITY is obsolete. Not "vintage", not "retro-chic" β obsolete. π
It has been replaced by the PLCHHQ, PLCHMQ, and PLCHLQ entries of the Plotchar utility.
PWRITY continues to be provided for compatibility of early NCAR Graphics codes. So like, she's still here for her old friends π«Ά but if you're writing new code, we suggest that you use Plotchar. Periodt. π
β¨ SYNOPSIS β¨
CALL PWRITY (X,Y,IDPC,NCHAR,JSIZE,JOR,JCTR)
that's seven arguments bestie, count 'em π
πΈ DESCRIPTION πΈ
Xβ an input parameter of typeREAL, defining the X world coordinate of the text string to be drawn using polylines.Yβ an input parameter of typeREAL, defining the Y world coordinate of the text string to be drawn using polylines.IDPCβ an input string of typeCHARACTER, which are the characters to be drawn. yes, the actual letters, iconic β¨NCHARβ an input parameter of typeINTEGER, giving the number of characters in theIDPCstring.JSIZEβ an input parameter of typeINTEGER, giving the width of the characters to be drawn. here's the menu π:0β8./1023.NDCs1β12./1023.NDCs2β16./1023.NDCs3β24./1023.NDCs
If greater than 3:
FLOAT(JSIZE)/1023. NDCs
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 is math, iykyk π
Note that there is an important difference in how text sizes are handled in GKS versus PWRITY. In GKS, text size is given in terms of character heights. In PWRITY, text size (JSIZE) is given in character width. don't get it twisted, bestie π¨
JORβ an input parameter of typeINTEGER, giving the orientation at which theIDPCstring is to be drawn.JORis measured counter-clockwise from the positive X axis. spin it, rotate it, slay π«JCTRβ an input parameter of typeINTEGER, giving 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.
π₯ ACCESS π₯
To use PWRITY, 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 list, that's not me being chaotic, that's literally what it says π)
π SEE ALSO π
Online: pwrite_family, pwritx, plotchar, plchhq, plchmq, plchlq
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 one came out back in March 1993 under the UNIX manual, from the NCAR GRAPHICS crew β copyright held down by the University Corporation for Atmospheric Research from 1987 to 2009. go forth and draw your little polylines, legend πβ¨
π¦ 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