GSET_LINEWIDTH(3NCARG)

πŸ’… GSET_LINEWIDTH β€” it's giving thick line energy ✨

okay bestie, welcome to gset_linewidth(3NCARG), a little NCAR GRAPHICS gem that lives in the NCAR GRAPHICS manual. it's the function that sets the linewidth scale factor β€” aka the relative thickness of a polyline. yes, we're talking about making your lines THICC. 🫢


🌸 NAME 🌸

gset_linewidth (Set linewidth scale factor) β€” sets the linewidth scale factor, or relative thickness of a polyline. no cap, that's literally the whole job and it does it beautifully. πŸ’–


✨ SYNOPSIS ✨

#include <ncarg/gks.h>

void gset_linewidth(Gdouble linewidth);

look at that signature. clean. iconic. Gdouble, one arg, no drama. 😌


πŸŽ€ DESCRIPTION πŸŽ€

  • linewidth (Input) β€” a scale factor that controls the linewidth of the polyline you're about to draw. it must be greater than or equal to 0. so like, 0 is fine, negative is not the vibe. 🚫

linewidth gets applied to the nominal linewidth on whatever device you're on, and then β€” plot twist β€” the linewidths are mapped to the nearest available linewidth representable on that device. so basically your device has a little menu of thicknesses it can actually do, and it rounds you to the closest one. it's giving "we'll get as close as we can, bestie." πŸ™ˆ

by default linewidth = 1.0, so setting linewidth = 2.0 will double line width on most devices. double it. slay. πŸ”₯


πŸ¦‹ ACCESS πŸ¦‹

to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. that's the entry fee, babes. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

Online: gpolyline(3NCARG), gset_linetype(3NCARG), gset_colr_rep(3NCARG), gset_line_colr_ind(3NCARG), ginq_linetype(3NCARG), ginq_linewidth(3NCARG), ginq_line_colr_ind(3NCARG), dashline(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)

Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version

like, the whole friend group is here. go read them too, iykyk. πŸ“š


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


real talk: this is the NCAR GRAPHICS manual, UNIX flavor, and this page is dated March 1993 β€” which is lowkey ancient but highkey still serving. the copyright belongs to University Corporation for Atmospheric Research, and use of this Software is governed by a License Agreement. read it, bestie, fr fr. πŸ“œβœ¨

anyway that's the whole page, mwah, go make those polylines gorgeous πŸ’…πŸŽ€πŸ¦‹