PERIML(3NCARG)
π PERIML β it's giving labeled perimeter, bestie π
Okay so this page is from the NCAR Graphics manual, section 3NCARG, and it's all about PERIML. Buckle up, this one's short but she's iconic.
β¨ NAME β¨
PERIML β draws a labeled perimeter with inward-pointing tick marks. And likeβ¦ the directions and lengths of those tick marks? You can change them, but not here β you do that by calling TICKS and/or TICK4. So PERIML is the main character and TICKS/TICK4 are the stylists. π
β¨ SYNOPSIS β¨
CALL PERIML (MJRX,MNRX,MJRY,MNRY)
That's it. Four args. Slay.
π C-BINDING SYNOPSIS π
For the C girlies π«Ά
#include <ncarg/ncargC.h>
void c_periml (int mjrx, int mnrx, int mjry, int mnry)
π DESCRIPTION π
So the parameters are MJRX, MNRX, MJRY, and MNRY β and they're all input expressions of type INTEGER. They specify the major and minor divisions of the horizontal (X) and vertical (Y) axes of the current viewport. But here's the tea: what they actually mean depends on whatever the internal parameter Β΄LSΒ΄ of SPPS is set to right now. Two whole vibes:
- 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). Not me doing math on a Friday π but okay we move. - 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. Periodt.
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. Fr fr, identical. No notes. π
β USAGE β
The statement
CALL PERIML (MJRX,MNRX,MJRY,MNRY)
is equivalent to
CALL GRIDAL (MJRX,MNRX,MJRY,MNRY,1,1,5,0.,0.)
Like, it's the same thing. PERIML is just GRIDAL with a little outfit on. π
πΈ EXAMPLES πΈ
Use the ncargex command to see the following relevant example: tgrida. Go look at it, bestie, it's right there.
π¦ ACCESS π¦
To use PERIML or c_periml, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. The order matters, okay? It's giving load-bearing. Don't skip steps. π
π₯ SEE ALSO π₯
Online: gridall, gridall_params, gacolr, gagetc, gageti, gagetr, gasetc, gaseti, gasetr, grid, gridal, gridl, halfax, labmod, perim, tick4, ticks, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version. Yes, a physical book. Vintage. Antique even. π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement. (Read it, bestie, it's not a vibe check you can skip. π«Ά)
Okay so basically: callPERIML, get a labeled perimeter with tick marks pointing inward, and remember thatΒ΄LSΒ΄is the one running the whole situation. π
Mwah β this was the UNIX flavor of the page, dated March 1993, filed under PERIML(3NCARG). No cap. πβ¨
π¦ 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