GRID(3NCARG)
okay bestie π welcome to the GRID(3NCARG) page from NCAR GRAPHICS. this one is lowkey iconic: it draws a grid, no labels, no drama. fr fr.
β¨ NAME β¨
GRID β draws an unlabeled grid. that's the whole assignment, and it ate. π
π SYNOPSIS π
CALL GRID (MJRX, MNRX, MJRY, MNRY)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_grid (int mjrx, int mnrx, int mjry, int mnry)
π DESCRIPTION π
okay so MJRX, MNRX, MJRY, and MNRY are input expressions of type INTEGER. they specify the major and minor divisions of the horizontal (X) and vertical (Y) axes of the current viewport. the meanings of these parameters depend on the current setting of the internal parameter Β΄LSΒ΄ of SPPS:
- if the value of
Β΄LSΒ΄implies that the axis is linear:MJRX(Y)specifies the number of major divisions of the X(Y) axis andMNRX(Y)specifies the number of minor divisions within each major division. in each case, the value specifies the number of spaces between grid lines or ticks rather than the number of lines or ticks. including the ones at the ends of the axes, there is always one more major division line or mark than the number of major divisions specified byMJRX(Y). similarly, there is always one less minor division line or tick per major division than the number of minor divisions per major division specified byMNRX(Y). the way that it counts spaces not lines? highkey a vibe. β¨ - if the value of
Β΄LSΒ΄implies that the axis is logarithmic: each major division point occurs at a value10**MJRX(Y)times the previous point. for example, if the minimum X-axis value were3., the maximum X-axis value3000.andMJRX1, then the major division points would be3.,30.,300., and3000.. ifMNRX(Y).LE.10, there are nine minor divisions within each major division. for example, between3.and30., there would be minor division points at6.,9.,12.,. . . 27.. ifMNRX(Y).GT.10., minor divisions are omitted. not me crying over missing minor ticks π periodt.
π«Ά C-BINDING DESCRIPTION π«Ά
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. no notes, bestie, it's literally copy-paste energy. π
π₯ USAGE π₯
the statement
CALL GRID (MJRX,MNRX,MJRY,MNRY)
is equivalent to
CALL GRIDAL (MJRX,MNRX,MJRY,MNRY,0,0,0,0.,0.)
πΈ EXAMPLES πΈ
use the ncargex command to see the following relevant example: tgrida. go look, it's giving tutorial main character energy. π
π ACCESS π
to use GRID or c_grid, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order, bestie. no cap. π
π¦ SEE ALSO π¦
Online: gridall, gridall_params, gacolr, gagetc, gageti, gagetr, gasetc, gaseti, gasetr, 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 bestie, that's the whole page π signing off from UNIX, March 1993, GRID(3NCARG) π«Άβ¨
π¦ 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