GACOLR(3NCARG)
β¨ 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 π
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
- 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