GRIDL(3NCARG)
β¨ GRIDL β¨
okay bestie, listen up π this is the GRIDL page from the NCAR GRAPHICS manual, section 3NCARG. it's giving graph paper but make it fashion, and honestly? we're obsessed.
π NAME π
GRIDL β draws a labeled grid with each major division labeled with its numeric value. yes bestie, it literally writes the numbers on there for you. main character behavior fr fr π
π SYNOPSIS π
CALL GRIDL (MJRX,MNRX,MJRY,MNRY)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_gridl (int mjrx, int mnrx, int mjry, int mnry)
π DESCRIPTION π
MJRX, MNRX, MJRY, and MNRY are input expressions of type INTEGER, and they specify the major and minor divisions of the horizontal (X) and vertical (Y) axes of the current viewport. lowkey the whole vibe hinges on the current setting of the internal parameter 'LS' of SPPS, because that decides what these numbers even mean. so let's break it down π«Ά
- If the value of
'LS'implies that the axis is linear:
MJRX(Y) specifies the number of major divisions of the X(Y) axis, and MNRX(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 β no cap, that distinction is everything. 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 by MJRX(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 by MNRX(Y). math is mathing, bestie π
- If the value of
'LS'implies that the axis is logarithmic:
each major division point occurs at a value 10**MJRX(Y) times the previous point. for example, if the minimum X-axis value were 3., the maximum X-axis value 3000. and MJRX 1, then the major division points would be 3., 30., 300., and 3000. β iconic exponential slay β¨
if MNRX(Y) .LE.10, there are nine minor divisions within each major division. for example, between 3. and 30., there would be minor division points at 6., 9., 12., . . . 27.
if MNRX(Y) .GT.10., minor divisions are omitted. sorry bestie, they're just not invited to the party π
πΈ C-BINDING DESCRIPTION πΈ
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different font π
β USAGE β
the statement
CALL GRIDL (MJRX,MNRX,MJRY,MNRY)
is equivalent to
CALL GRIDAL (MJRX,MNRX,MJRY,MNRY,1,1,0,0.,0.)
like, it's literally the glow-up version of GRIDAL with the extra args already filled in for you. convenient queen behavior π
π EXAMPLES π
use the ncargex command to see the following relevant example: tgrida. go look, it's cute, i promise π§
π₯ ACCESS π₯
to use GRIDL or c_gridl, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters bestie, don't be chaotic about it (unless the chaos works, but here it doesn't) π
π SEE ALSO π
- Online:
gridall,gacolr,gagetc,gageti,gagetr,gasetc,gaseti,gasetr,grid,gridal,halfax,labmod,perim,periml,tick4,ticks,ncarg_cbind. - Hardcopy:
NCAR Graphics Fundamentals, UNIX Version
a whole friend group of manpages, we love to see it π«Ά
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
okay so legal said i have to say it plainly and i did, but know that i said it with love π
and that's the whole page, bestie!! this one came from the UNIX manual, GRIDL(3NCARG), dated March 1993 β yes she's vintage, yes she still ate π
β¨π periodt.
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms