GPOLYLINE(3NCARG)
π GPOLYLINE π
okay bestie, welcome to GPOLYLINE from the NCAR GRAPHICS family (manual page GPOLYLINE(3NCARG), iykyk). This one's a little output primitive, and its whole vibe is: draw line segments connecting a sequence of coordinate pairs that you the user specified. that's it, that's the job. slay β¨
β¨ NAME β¨
gpolyline (aka Polyline) β this output primitive draws line segments connecting a sequence of user-specified coordinate pairs. literally just connect-the-dots but make it graphics π
π SYNOPSIS π
#include <ncarg/gks.h>
void gpolyline(const Gpoint_list *point_list);
π¦ DESCRIPTION π¦
so here's what you're working with, bestie:
point_list.num_pointsβ (Gint, Input) β the number of points in the line you wanna draw. it must be larger than one, no cap. one point is not a line, it's a cry for help πpoint_list.pointsβ (Gint *, Input) β the X and Y coordinates (specified in world coordinates) of thepoint_list.num_pointspoints that are gonna get connected by line segments.
π USAGE π
okay this part matters so listen up π«Ά β those coordinate pairs must be in world coordinates and not user coordinates. and like, among other things, this means the log scaling and mirror-imaging features you can get via the c_set call, plus the SPPS functions for drawing lines, are not applicable here. so don't come for them, they don't work in this context. periodt.
πΈ ACCESS πΈ
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the whole thing, bestie, go forth and link π₯
β SEE ALSO β
Online:
gset_linetype(3NCARG)gset_linewidth(3NCARG)gset_colr_rep(3NCARG)gset_line_colr_ind(3NCARG)ginq_linetype(3NCARG)ginq_linewidth(3NCARG)ginq_line_colr_ind(3NCARG)dashline(3NCARG)set(3NCARG)gks(3NCARG)ncarg_gks_cbind(3NCARG)
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"
like, go read those too if you're obsessed with this one π
π COPYRIGHT π
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 fr fr π this was the UNIX version, dated March 1993 β ancient but iconic, main character energy since day one π bye bestie, go draw some lines π¦β¨
π¦ 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