CURVE(3NCARG)
β¨ CURVE (3NCARG) β¨
okay bestie, so this one's a page from the NCAR GRAPHICS manual, and it's lowkey iconic π. Let's get into it.
π NAME π
CURVE</ppurple> draws the curve defined by a specified series of points in the user coordinate system. The "pen" (for subsequent calls to FRSTPT, VECTOR, PLOTIF, and PLOTIT) is left at the location of the last point in the curve. ποΈβ¨
πΈ SYNOPSIS πΈ
CALL CURVE (PX,PY,NP)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_curve (float *px, float *py, int np)
π DESCRIPTION π
PXβ an input array of typeREALthat defines the X user coordinates of the curve. ArrayPXis of lengthNP. no notes, it's just the x's fr fr π«PYβ an input array of typeREALthat defines the Y user coordinates of the curve. ArrayPYis of lengthNP. and these are the y's π«ΆNPβ an input expression of typeINTEGERthat specifies the number of points in the curve. this is literally just "how many points bestie" π’
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. periodt, nothing new here π
π USAGE π
okay so here's the tea β:
If the routine SET was not called, or if it was called with a linear mapping in both the X and Y coordinates, then the GKS routine GPL is called to output a polyline of length NP points. simple. clean. slay β¨
If the mapping in either axis is logarithmic, the input coordinates are transformed and drawn ten points at a time. (The last segment may be less than ten points.) okay so it's chunking, it's giving batch processing energy π§
Polyline type, line width, and color can also be set by calling the GKS routines GSLN, GSLWSC, GSCR, and GSPLCI, before calling CURVE. like do it first, not after, bestie π
π₯ EXAMPLES π₯
Use the ncargex command to see the following relevant examples: sfex01, sfex02, and tsoftf. go look at them, they're right there π
β ACCESS β
To use CURVE or c_curve, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. yes the order matters, don't fight it π
π SEE ALSO π
- Online:
gpl,gsln,gslwsc,gscr,gsplci,frstpt,vector,plotif,line,spps,spps_params,ncarg_cbind - Hardcopy: NCAR Graphics Fundamentals, UNIX Version User's Guide for NCAR GKS-0A Graphics; "The Use of X/Y Coordinates in NCAR Graphics" SCD User Document
iykyk, all the siblings in one place π«Ά
π COPYRIGHT π
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 that π
. this one's from the UNIX manual set, dated March 1993 β yes it's vintage, it's retro, it's got main character energy β and the page itself is CURVE(3NCARG). bye bestie, go draw some curves πΈβ¨
π¦ 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