NGLOGO(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

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 type INTEGER, 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 type REAL specifying the X-Y coordinate position, in normalized device coordinates (between 0. and 1.), 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 type REAL. the desired height of the logo, expressed in normalized device coordinates. height only, that's her whole thing.
  • ITYPE β€” an input parameter of type INTEGER, the logo type. the choices are, and bestie there are five:
    • '1' β€” An NCAR logo. This logo will be drawn in a single color if IWK is 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 type INTEGER. 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 type INTEGER. a secondary color index used only for logo type 5. For that type, the UCAR star logo is drawn using color index ICOL1 and the text string "UCAR" is drawn using color index ICOL2. 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 (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