GPOLYLINE(3NCARG)

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

πŸ’– 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 the point_list.num_points points 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 (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