DPCURV(3NCARG)
β¨ DPCURV β it's giving "draw a whole entire curve" β¨
okay bestie, welcome to the NCAR GRAPHICS section of the manual (that's manual 3NCARG, iykyk) π this one is all about DPCURV, and honestly? she's iconic.
π NAME π
DPCURV β she's the one you call when you wanna draw a complete curve defined by a sequence of points in the user coordinate system. no cap. π
π¦ SYNOPSIS π¦
CALL DPCURV (XCPU,YCPU,NPTS)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_dpcurv (float *xcpu, float *ycpu, int npts);
β¨ DESCRIPTION β¨
okay so here's the tea on the arguments π«
XCPUβ (an input array of typeREAL) this one holds the X coordinates of the points in the user coordinate system that define the curve you're about to draw. slay.YCPUβ (an input array of typeREAL) and this one holds the Y coordinates of those same points in the user coordinate system defining the curve to be drawn. the matching set, periodt. πNPTSβ (an input expression of typeINTEGER) this is literally just the number of points that define the curve. that's it, that's the job. π
πΈ C-BINDING DESCRIPTION πΈ
ngl the C-binding argument descriptions are the exact same as the FORTRAN argument descriptions. no plot twist, same vibes. π¦
π₯ USAGE π₯
the FORTRAN statement
CALL DPCURV(XCPU,YCPU,NPTS)
draws a complete curve by connecting the point (XCPU(1),YCPU(1)) to the point (XCPU(2),YCPU(2)), then connecting that point to the point (XCPU(3),YCPU(3)), and so on and so on, all the way through the last point, (XCPU(NPTS),YCPU(NPTS)) β and it does all of that in a manner described by the current values of the internal parameters of DASHPACK. so the look of your line? that's DASHPACK's moment, not DPCURV's. π
here's the backstage pass though π β DPCURV maps the input coordinates to the fractional system and then passes them on to lower-level routines. and then:
- if smoothing is turned off,
DPCURVcallsDPDRAW - if smoothing is turned on, it calls
DPSMTH
so she's lowkey just the middle manager of curve-drawing. delegation queen. π
π EXAMPLES π
run the ncargex command to see the following relevant examples: tdshpk. go look, fr fr. π
π ACCESS π
to use DPCURV or c_dpcurv, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. don't fight the order bestie, she has a system. π§
π SEE ALSO π
Online: dashpack, dashpack_params, dpdraw, dpfrst, dpgetc, dpgeti, dpgetr, dplast, dpline, dpsetc, dpseti, dpsetr, dpsmth, dpvect, ncarg_cbind.
Hardcopy: None. (the printer said no π)
π 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!! π source/version vibes: this is DPCURV(3NCARG) from the UNIX manual, dated March 1995 β yes she's an elder but she ATE and she's still serving. 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