CURVED(3NCARG)
β¨ CURVED β the NCAR Graphics glow-up β¨
okay bestie, so this is CURVED from the NCAR Graphics manual (that's the 3NCARG section, iykyk). Sit down, grab a strawberry π, because this one's actually so simple and so cute.
π NAME π
CURVED β draws a curve through a sequence of points. that's it. that's the whole job. she's a one-trick pony and she ate. π
π¦ SYNOPSIS π¦
CALL CURVED (X,Y,N)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_curved (float *x, float *y, int n)
πΈ DESCRIPTION πΈ
so there's three things you gotta hand her, and here's the vibe check on each:
Xβ an input array of typeREAL, and it's the X user coordinates of the curve. ArrayXis of lengthN. literally just where the points live horizontally, bestie.Yβ an input array of typeREAL, and it's the Y user coordinates of the curve. ArrayYis of lengthN. the vertical besties. same length, no exceptions. πNβ an input expression of typeINTEGERthat specifies the number of points in the curve. how many points are we serving tonight? that'sN. periodt.
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument description. no notes, no changes, she's consistent. π
π USAGE π
okay so the statement
CALL CURVED (X,Y,N)
is equivalent to these statements:
CALL FRSTD (X(1),Y(1))
CALL VECTD (X(2),Y(2))
CALL VECTD (X(3),Y(3))
...(et cetera)...
CALL VECTD (X(N),Y(N))
CALL LASTD
the basic difference is that CURVED requires you to have all of the coordinates defining the curve available at once. sometimes this is convenient and sometimes it is not β she's honest about it, okay? π
now the tea β:
if three or more distinct points are given, and if one of the smoothing versions of Dashline is being used, and if the internal parameter that suppresses smoothing is not set β then splines under tension are used to generate a smooth curve β¨ and the number of points actually used to draw the curve will depend on its length. lowkey magical.
in all other cases, the "curve" will be approximated by just connecting the given points in the specified order. like a connect-the-dots situation. no smoothing, no drama, just lines. π
π₯ EXAMPLES π₯
use the ncargex command to see the following relevant examples: carline, colcon, cmpfil, cmpgrp, cmpitm, cmplab, cmpmsk, cmptit, cpex01, cpex02, cpex03, cpex04, cpex06, vvex01, tdashc, tdashl, tdashp, tdashs, carline, fcover, ffex03, ffex05, fdlcurvd, fdldashd, fdlsmth, fpcloqu.
(and yes, carline is in there twice. that's not a typo, that's just how the list is. she said double the carline, double the fun π«Ά)
π ACCESS π
to use CURVED or c_curved, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, bestie, don't be chaotic about it. β
see the man page for dashline to see how to access the quick, normal, smooth, and super line draw options. yes, "super." she's iconic like that. π
π§ SEE ALSO π§
Online: dashline, dashline_params, dashdb, dashdc, frstd, lastd, lined, reset, vectd, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
heads up bestie: the use of this Software is governed by a License Agreement. it's not a free-for-all, it's a whole licensed situation. read the agreement, be a good citizen. π
okay that's the whole page!! UNIX, dated March 1993, filed under CURVED(3NCARG) β she's been serving smooth curves since before we were born and honestly? respect. go draw something pretty. bye bestie!! π
β¨π¦
π¦ 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