AGCHNL(3NCARG)

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

✨ AGCHNL β€” the NCAR Graphics glow-up page ✨

okay bestie, welcome to the NCAR Graphics corner of the manual, where we're talking about AGCHNL. πŸ’–


🌸 NAME 🌸

AGCHNL β€” it's literally your backstage pass: it lets you swap out the numeric labels Autograph generates for any character string your heart desires. Months, Roman numerals, your cat's name, whatever. No cap.


πŸŽ€ SYNOPSIS πŸŽ€

SUBROUTINE AGCHNL (IAXS,VILS,CHRM,MCIM,NCIM,IPXM,
+ CHRE,MCIE,NCIE)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the whole cast of characters, and every single one of them matters, so pay attention 🫢

  • IAXS β€” (an input expression of type INTEGER) this is the number of the axis being drawn. And the mapping is iconic in its simplicity: 1, 2, 3, and 4 mean the left, right, bottom, and top axes respectively. Periodt.
  • VILS β€” (an input expression of type REAL) the value that's gonna be represented by the numeric label, expressed in the label system for the axis. 🚨 You must NOT alter the value of VILS. Hands off, bestie. 🚨
  • CHRM β€” (an input variable of type CHARACTER) on entry, this holds the mantissa of the numeric label, exactly as it would look if AGCHNL made zero changes. And here's the little detail that trips people up: if the numeric label includes a "times" symbol, that symbol is represented by a blank in CHRM. (peep IPXM below for the deets πŸ‘€) CHRM may be modified. Go off. πŸ’…
  • MCIM β€” (an input expression of type INTEGER) the length of CHRM β€” as in, the maximum number of characters it can hold. 🚨 The value of MCIM must not be altered. Do not touch. Fr fr. 🚨
  • NCIM β€” (an input variable of type INTEGER) on entry, this is the number of meaningful characters in CHRM. And listen β€” if you change CHRM, you should change NCIM accordingly. Keep it consistent, bestie, it's giving attention to detail. ✨
  • IPXM β€” (an input variable of type INTEGER) on entry, this is zero if there's no "times" symbol in CHRM. If it's non-zero, then it's the index of a character position in CHRM β€” that's where the "times" symbol lives. And if AGCHNL changes the position of the "times" symbol in CHRM, removes it, or adds it? Then the value of IPXM must be changed. You gotta keep that index honest. πŸ™ˆ
  • CHRE β€” (an input variable of type CHARACTER) on entry, this holds the exponent of the numeric label, as it would appear if AGCHNL made no changes. CHRE may be modified. Slay. 🌈
  • MCIE β€” (an input expression of type INTEGER) the length of CHRE β€” the maximum number of characters it can hold. 🚨 The value of MCIE must not be altered. Nope nope nope. 🚨
  • NCIE β€” (an input variable of type INTEGER) on entry, the number of meaningful characters in CHRE. Same rule as its mantissa sibling: if CHRE is changed, NCIE should be changed accordingly. πŸ’œ

πŸ’… USAGE πŸ’…

okay this is the part where I hold your hand, bestie, because it's lowkey important:

This routine is not called by the user program. Nope β€” it's called by Autograph itself, right after the character string representing each numeric label has been generated, and just before it gets written onto the graph. πŸ“βœ¨

So you're not the one dialing the phone β€” Autograph is, and you're the one answering. 🫢 You get to change the character string in any desired way. And the payoff? Axes can be labeled using the names of the months, Roman numerals, etc. Main character energy for your graph. πŸ‘‘

⚠️ Note: a user version of AGCHNL should not call any other Autograph routine. Just don't. It's a boundary thing. πŸ’€

🧚 ACCESS 🧚

To use AGCHNL, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. Order matters, iykyk. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Online: autograph, agback, agbnch, agchax, agchcu, agchil, agcurv, agdshn, aggetc, aggetf, aggeti, aggetp, aggetr, agpwrt, agrstr, agsave, agsetc, agsetf, agseti, agsetp, agsetr, agstup, agutol, anotat, displa, ezmxy, ezmy, ezxy, ezy

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.


and that's the whole page, bestie πŸŽ€ this one comes to you from the UNIX manual, dated March 1993, filed under AGCHNL(3NCARG) β€” and yes, we ate. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from