LBFILL(3NCARG)
π LBFILL β the little fill guy behind your label bar π
okay bestie, gather round β this is LBFILL, a routine from the NCAR Graphics fam (you'll see it filed under 3NCARG in the manual pages). It's the little helper that LBLBAR calls when the argument IFTP is non-zero, and its whole job is filling in portions of the bar. The default version does a color fill by calling GSFACI and GFA. But here's the slay part: you can write your own version to do a completely different kind of fill. Main character energy, honestly. π
β¨ SYNOPSIS β¨
CALL LBFILL (IFTP, XCRA, YCRA, NCRA, INDX)
πΈ DESCRIPTION πΈ
IFTPβ an input expression of typeINTEGER. It's literally just the value of the argumentIFTPfrom your call toLBLBAR. Same number, passed straight through. πXCRA,YCRAβ input arrays of typeREAL, holding the X and Y coordinates of five points that define a rectangular box. That box is the thing getting filled, in some manner or another. And heads up: the fifth point defined by these arrays will always be a duplicate of the first. Not a typo, not a bug, just how it is. πNCRAβ an input expression of typeINTEGER, the number of points defining that rectangular box. Its value will always befive. Yes, always. The box has spoken. π¦INDXβ an input expression of typeINTEGER, and it's one of the indices from the arrayLFINin your call toLBLBAR. Its value may be used as a color index or as a pattern selector β dealer's choice, bestie. β¨
π₯ USAGE π₯
So LBLBAR calls this routine whenever LBLBAR's argument IFTP is non-zero. And it doesn't just call it once β it calls LBFILL once for each sub-box in the label bar, using a statement shaped exactly like this:
CALL LBFILL (IFTP,XCRA,YCRA,NCRA,INDX)
And the routine is expected to fill the sub-box defined by its arguments. That's the whole assignment. π
The default version of the routine looks like this, no cap:
SUBROUTINE LBFILL (IFTP,XCRA,YCRA,NCRA,INDX)
DIMENSION XCRA(*),YCRA(*)
CALL GSFACI (INDX)
CALL GFA (NCRA-1,XCRA,YCRA)
RETURN
END
This version does a color fill of the box, using the last argument as a color index. Simple, clean, iconic. π
The user may replace this routine with a version that does any desired sort of fill. And usually? That's easy β you can typically do it by simply compiling the desired version, so that the default one from the package will not be loaded. The impostor gets left at the door. πͺβ¨
π ACCESS π
To use LBFILL, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β and preferably in that order, bestie. Order matters, trust. π«Ά
π SEE ALSO π
Online: labelbar, labelbar_params, lbgeti, lbgetr, lblbar, lbseti, lbsetr, 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.
and that's the whole page, bestie β LBFILL(3NCARG), filed under UNIX, dated March 1993, from the NCAR Graphics collection. go fill some boxes, you absolute legend π
β¨π
π¦ 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