AGPWRT(3NCARG)
β¨ AGPWRT β¨ (it's an NCAR Graphics page, bestie π)
okay so this is AGPWRT from the NCAR Graphics manual, and honestly? it's giving "glow-up station for your text strings." π
πΈ NAME πΈ
AGPWRT β it's literally the way for you to change the style of all the text strings that Autograph draws. every single one. no cap. π
π¦ SYNOPSIS π¦
SUBROUTINE AGPWRT (XPOS,YPOS,CHRS,NCHS,ISIZ,IORI,ICEN)
that's the whole vibe right there, seven arguments, slay. β¨
π DESCRIPTION π
okay so here's the tea on every single argument, don't skip, i know it's long but we're doing this together π«Ά
XPOSβ an input expression of typeREAL, and it's the X coordinate of a point that the text string gets positioned relative to. that's it, that's the whole job.YPOSβ an input expression of typeREAL, the Y coordinate of that same point the text string is positioned relative to. yes it's the partner-in-crime ofXPOS. iconic duo fr fr.CHRSβ an input expression of typeCHARACTER, and it's the actual text string that's gonna be drawn. the main character, literally.NCHSβ an input expression of typeINTEGER, and it's the length ofCHRSβ like, the number of characters in the text string. so bestie, you're telling it how long your string is. πISIZβ an input expression of typeINTEGERthat specifies the size of the characters being used. and here's the cheat sheet:0β character width of 8 plotter units1β character width of 12 plotter units2β character width of 16 plotter units3β character width of 24 plotter units
and if you go larger than that? the value specifies the character width directly. so you're not stuck with the presets, you can just say the number. periodt.
IORIβ an input expression of typeINTEGER, the orientation angle of the text string, measured in degrees counter-clockwise from a vector that's horizontal and pointing to the right. so like,0is normal reading direction, and everything else is you spinning it. πICENβ an input expression of typeINTEGER, the centering option, and this one is lowkey the most important one for placement:-1β the text is written with(XPOS,YPOS)in the center of the left edge of the leftmost character0β(XPOS,YPOS)is in the center of the entire string+1β(XPOS,YPOS)is in the center of the right edge of the rightmost character
so you're basically picking which part of your text the coordinates are pinned to. left, middle, or right. choose wisely π
π USAGE π
okay important: this routine is not called by your user program. it's called by Autograph itself, to draw a numeric label or an informational label on the graph. so it's the backstage crew, not the opening act. π
the default version just calls the plot-package routine PWRIT. but here's the fun part β the user may supply a replacement version. so you can absolutely take over. main character energy. π
β οΈ Note: a user version of AGPWRT should not call any other Autograph routine. seriously. don't do it. that's the rule and we respect the rule. π
π ACCESS π
to use AGPWRT, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order, bestie, the order matters. π§
β SEE ALSO β
Online: autograph, agback, agbnch, agchax, agchcu, agchil, agchnl, agcurv, agdshn, aggetc, aggetf, aggeti, aggetp, aggetr, agrstr, agsave, agsetc, agsetf, agseti, agsetp, agsetr, agstup, agutol, anotat, displa, ezmxy, ezmy, ezxy, ezy
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
(the whole friend group, we love a supportive ensemble cast π«Ά)
π 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 of the UNIX manual, March 1993, filed under AGPWRT(3NCARG) β go forth and style those text strings, you've got this. β¨ππ¦
π¦ 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