GPL(3NCARG)

✨ GPL(3NCARG) ✨

okay bestie, so this is gpl from the NCAR GRAPHICS manual (that's the <rainbow>3NCARG</rainbow> section, iykyk) β€” and literally all it does is draw lines. but like, slay lines. let's get into it πŸ’–


πŸŽ€ NAME πŸŽ€

gpl β€” draws line segments connecting a sequence of user-specified coordinate pairs

yes. that's it. that's the whole vibe. connect the dots but make it ✨graphics✨


🌸 SYNOPSIS 🌸

CALL GPL (N, X, Y)

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

#include <ncarg/gks.h>

void gpolyline(const Gpoint_list *point_list);

πŸ’… DESCRIPTION πŸ’…

so this output primitive (fancy word, it just means "a thing that draws stuff") draws line segments connecting a sequence of coordinate pairs that you the user picked out. it's giving connect-the-dots but for real graphics work. 🫢

  • N β€” (Integer, Input) β€” the number of points in the line you wanna draw. heads up bestie: N must be larger than one. like, a line needs at least two points, obviously. one point is not a line, it's a crisis. πŸ’€
  • X (N) β€” (Real Array, Input) β€” the X coordinates of the N points that are gonna get connected by line segments. these are specified in world coordinates. 🌍
  • Y (N) β€” (Real Array, Input) β€” the Y coordinates of those same N points, also in world coordinates. matching set, periodt. πŸ’œ

πŸ”₯ USAGE πŸ”₯

ok so this is the part where you have to pay attention, no cap.

the coordinate pairs have to be in world coordinates and not user coordinates. and the way that matters is: among other things, it means the log scaling and mirror-imaging features that you'd get through the SET call β€” and through the SPPS functions for drawing lines β€” are not applicable here. nope. not for gpl. those little perks do not apply. πŸ™ˆ


πŸ‘‘ ACCESS πŸ‘‘

to use the GKS routines, you load the NCAR GKS-0A library, which is called ncarg_gks. go get her. ✨


🌈 SEE ALSO 🌈

Online: gsln, gslwsc, gscr, gsplci, gqln, gqlwsc, gqplci, dashline, set, gpolyline

Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version "The Use of X/Y Coordinates in NCAR Graphics" SCD User Document"


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!! πŸŽ€ this one shipped on UNIX back in March 1993, and the source tag is GPL(3NCARG) β€” so like, go forth and draw those line segments, you absolute icon. mwah πŸ’…πŸ’–βœ¨