NGLOGO(3NCARG)
π NGLOGO π
okay bestie so this is NGLOGO, a lil subroutine from the NCAR GRAPHICS manual (section 3NCARG, she's fancy), and she draws various NCAR and UCAR logos on a workstation you pick. yes. an entire logo-drawing machine. we love a queen who does one job perfectly β¨
β¨ NAME β¨
NGLOGO β Draws various NCAR and UCAR logos on a specified workstation. that's it, that's the whole gig π
πΈ SYNOPSIS πΈ
CALL NGLOGO(IWK,X,Y,SIZE,ITYPE,ICOL1,ICOL2)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_nglogo(int iwk, float x, float y, float size,
int itype, int icol1, int icol2)
π DESCRIPTION π
okay so here's the tea on every single argument, no skipping, we don't do that here π
IWKβ an input parameter of typeINTEGER, and it's the workstation identifier for the workstation you want the logo plotted to. like, where's the logo going? this. this is where.X,Yβ input parameters of typeREALspecifying the X-Y coordinate position, in normalized device coordinates (between0.and1.), where the symbol is to be positioned. this position marks the horizontal and vertical center of the symbol. so like, it's centered on that point, not hanging off it, iykyk.SIZEβ an input parameter of typeREAL. the desired height of the logo, expressed in normalized device coordinates. height only, that's her whole thing.ITYPEβ an input parameter of typeINTEGER, the logo type. the choices are, and bestie there are five:'1'β An NCAR logo. This logo will be drawn in a single color ifIWKis not a PostScript workstation. A full color logo will be put to a PostScript workstation. (so like, she dresses up for PostScript. main character behavior honestly.)'2'β A UCAR logo (just the UCAR star symbol).'3'β The text"NCAR"in Bell Gothic Black font. slay.'4'β The text"UCAR"in Bell Gothic Black font. also slay.'5'β UCAR star logo, plus"UCAR"in Bell Gothic font at half the height of the star. In this case, the coordinate (X,Y) specifies the center of the star part of the logo. β (heads up: for this one the center is the star's center, not the whole combo's center. noted.)
ICOL1β an input parameter of typeINTEGER. the color index to be used for the logo color. For the NCAR logo on PostScript output, this argument is ignored. π (she said "not today")ICOL2β an input parameter of typeINTEGER. a secondary color index used only for logo type5. For that type, the UCAR star logo is drawn using color indexICOL1and the text string"UCAR"is drawn using color indexICOL2. two colors, two indexes, one iconic little combo π«Ά
π C-BINDING DESCRIPTION π
The C binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. no notes. periodt.
π USAGE π
Call this subroutine to produce the desired logo. that's the whole vibe check β you call it, logo appears.
Use the ncargex command to see the following relevant example: miex01. go look, it's cute π₯
π EXAMPLES π
CALL NGLOGO(1, 0.5, 0.5, 0.1, 1, 1, 1)
Plots an NCAR logo on workstation with ID 1 in the center of the plot with height one-tenth the maximum plot size. If going to a PostScript workstation, the logo will be a full-color logo, otherwise the logo will be plotted using color index 1.
CALL NGLOGO(1, 0.5, 0.5, 0.1, 2, 2, 1)
Plots a UCAR star logo on workstation with ID 1 in the center of the plot with height one-tenth the maximum plot size. The logo will be plotted using color index 2. β
π§ ACCESS π§
To use NGLOGO or c_nglogo, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. (in that order!! she's not asking twice π)
π SEE ALSO π
Online: plotchar (font 35) (3NCARG),
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π₯ COPYRIGHT π₯
Copyright (C) 1987-2002 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
no cap, that's every single flag, argument, default, color index and example, all present and accounted for. nothing dropped, nothing invented. bestie behavior only π
okay byeee, this page is from the UNIX manual, dated April 2002, and it lives under the name NGLOGO(3NCARG) in the NCAR GRAPHICS docs πβ¨
π¦ 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