GACOLR(3NCARG)

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

✨ GACOLR ✨

okay bestie, buckle up, we're doing NCAR GRAPHICS πŸ’… this one lives in the 3NCARG manual, and it's about vibes β€” specifically, the vibes of your background's colors 🎨


🌸 NAME 🌸

GACOLR β€” sets the values of internal parameters determining the color of various parts of the background. that's it, that's the whole job, and she does it beautifully ✨


πŸŽ€ SYNOPSIS πŸŽ€

CALL GACOLR (KAXS,KLBL,KMJT,KMNT)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

void c_gacolr (int kaxs, int klbl, int kmjt, int kmnt)

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” you're passing in four arguments, and they're all input expressions of type INTEGER. no cap, they have to be INTEGER. and what are they? they're the new values for the internal parameters Β΄CAXΒ΄, Β΄CLBΒ΄, Β΄CMJΒ΄, and Β΄CMNΒ΄ 🫢

and those map like this, bestie:

  • KAXS β†’ the color index to use for the axes πŸͺ„
  • KLBL β†’ the color index to use for the labels 🏷️
  • KMJT β†’ the color index to use for the major ticks/grid lines πŸ”₯
  • KMNT β†’ the color index to use for the minor ticks/grid lines 🌈

respectively. in that order. she's organized like that πŸ’…

now for the important part β€” values less than zero mean that no call is to be done to set the color before drawing items of the associated type. so like, negative number = "don't touch the color, just draw it, leave the color alone, we're not doing that today" πŸ™ˆ

and the default value of each of the four internal parameters is -1. all four. every single one. -1. iconic behavior honestly πŸ‘‘


🧚 C-BINDING DESCRIPTION 🧚

the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different language, we love a consistent queen ✨


πŸ’œ USAGE πŸ’œ

this routine lets you set the current value of Gridall parameters. and if you want the complete list of parameters available in this utility, go read the gridall_params man page β€” she has the full menu, this one's just the little drive-thru window πŸ“


⭐ ACCESS ⭐

to use GACOLR or c_gacolr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order πŸ’« (yes, the order matters, don't be chaotic about it)


🌟 SEE ALSO 🌟

Online: gridall, gridall_params, gagetc, gageti, gagetr, gasetc, gaseti, gasetr, grid, gridal, gridl, halfax, labmod, perim, periml, tick4, ticks, 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.


okay so real talk β€” the copyright and the license agreement are doing the heavy lifting here. respect the license, bestie, it's literally the law 🫑

so yeah. that's GACOLR from the NCAR Graphics manual, dated March 1993 (yes, 1993, she's vintage and she's thriving πŸ’€βœ¨). go set your axis colors, go be the main character of your own plot, and remember: negative means don't touch it. periodt πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from