Labelbar(3NCARG)

πŸ’– Labelbar β€” the NCAR GRAPHICS icon herself (3NCARG) πŸ’–

okay bestie, sit down, hydrate, because we're talking about Labelbar, and she is literally the moment. She creates a labeled, filled, rectangular bar that serves as a key for a filled plot. yes, that little color-strip legend thing you've been staring at your whole life? that's her. main character energy, no cap. πŸŽ€


✨ NAME ✨

Labelbar β€” creates a labeled, filled, rectangular bar to serve as a key for a filled plot. πŸ’…


🌈 SYNOPSIS 🌈

  • LBLBAR β€” produces a complete label bar. the whole thing. the full slay. ✨
  • LBGETI β€” retrieves current integer parameter values. 🧚
  • LBGETR β€” retrieves current real parameter values. 🧚
  • LBSETI β€” sets integer parameter values. πŸ”₯
  • LBSETR β€” sets real parameter values. πŸ”₯

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

for the C girlies, the roster is:

c_lblbar
c_lbgeti
c_lbgetr
c_lbfill
c_lbseti
c_lbsetr

πŸ‘‘ USER-MODIFIABLE INTERNAL ROUTINES πŸ‘‘

  • LBFILL β€” fills label bars. that's it, that's the job. she fills label bars. πŸ’–

🌸 ACCESS 🌸

to use Labelbar routines, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. order matters, bestie, it's giving choreography. 🩰


πŸ’€ MESSAGES πŸ’€

ngl, various error conditions can occur in Labelbar. every single one of them results in a call to the error-handling routine SETER, with a final argument indicating that the error is recoverable. by default? an error message gets printed and execution is terminated. 😭 but β€” plot twist β€” if you turn on error recovery (as described in the man page for error_handling), you can get control back. 🫢

the error messages are as follows; all should be more or less self-explanatory:

LBGETI - UNCLEARED PRIOR ERROR
LBGETR - PARAMETER NAME NOT KNOWN - X
LBGETR - PARAMETER NAME TOO SHORT - X
LBGETR - UNCLEARED PRIOR ERROR
LBLBAR - ERROR EXIT FROM GQFACI
LBLBAR - ERROR EXIT FROM GQLWSC
LBLBAR - ERROR EXIT FROM GQPLCI
LBLBAR - ERROR EXIT FROM GQTXCI
LBLBAR - UNCLEARED PRIOR ERROR
LBSETI - UNCLEARED PRIOR ERROR
LBSETR - PARAMETER NAME NOT KNOWN - X
LBSETR - PARAMETER NAME TOO SHORT - X
LBSETR - UNCLEARED PRIOR ERROR

all of these should be more or less self-explanatory, fr fr. πŸ’… the ones that complain of an error exit from a GKS routine probably imply that GKS has somehow been put in the wrong state (vibe check failed, honestly). the others result from using an incorrect internal-parameter name in a call to one of the parameter-access routines. and the X? that gets replaced by the offending name. mystery solved, detective. πŸ”βœ¨


πŸ’œ SEE ALSO πŸ’œ

Online: labelbar_params, lbfill, lbgeti, lbgetr, lblbar, lbseti, lbsetr, ncarg_cbind

Hardcopy: NCAR Graphics Fundamentals, UNIX Version


Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

okay that's the whole page, you ate it up. πŸ“ go make a pretty label bar, bestie. bye bye, icon! πŸ‘‘βœ¨πŸ’–

signing off from the UNIX manual pages β€” this was the March 1993 edition of Labelbar(3NCARG), and yes she's vintage and yes she's still serving. πŸŽ€