DPCURV(3NCARG)

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

✨ 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 type REAL) 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 type REAL) 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 type INTEGER) 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, DPCURV calls DPDRAW
  • 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 (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