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:Nmust 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 theNpoints that are gonna get connected by line segments. these are specified in world coordinates. πY (N)β (Real Array, Input) β the Y coordinates of those sameNpoints, 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 π
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 π πβ¨
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms