AGCURV(3NCARG)
β¨ AGCURV β¨
okay bestie, welcome to the NCAR Graphics manual, page AGCURV(3NCARG) β this is the one that draws a curve for you, and honestly? it's giving main character energy π
π NAME π
AGCURV β Draws a curve in a manner specified by the current values of the control parameters β the primary parameters with default values or with values supplied by the user, and the secondary parameters with values computed by AGSTUP. periodt. π
πΈ SYNOPSIS πΈ
CALL AGCURV (XVEC,IIEX,YVEC,IIEY,NEXY,KDSH)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_agcurv (float *xvec, int iiex, float *yvec,
int iiey, int nexy, int kdsh)
π DESCRIPTION π
XVECβ a singly-subscripted input array of typeREAL. WhenIIEXis non-zero, it containsNEXYX-coordinate data, like so: curve point 1 has X coordinateXVEC(1), curve point 2 has X coordinateXVEC(1+IIEX), curve point 3 has X coordinateXVEC(1+IIEX*2), etc. WhenIIEXis zero, the arrayXVECis ignored β curve point 1 has X coordinate"1.", curve point 2 has X coordinate"2.", etc.
And listen: if the value of any X coordinate matches the current value of 'NULL/1.' (default β "1.E36"), that point is considered missing π β curve segments on either side of that point are not drawn. no cap.
IIEXβ an input expression of typeINTEGER. If it's non-zero, it's the index increment between one X coordinate inXVECand the next. IfIIEXis zero, the arrayXVECis ignored, exactly as described above. πYVECβ a singly-subscripted input array of typeREALthat is just likeXVEC, but it provides Y coordinate data. twin behavior fr fr.IIEYβ an input expression of typeINTEGERthat is just likeIIEX, but it describes the use (or non-use) ofYVEC.NEXYβ an input expression of typeINTEGER, and it's the number of curve points β the number of X/Y coordinate pairs to be used. π
Note: If'INVERT.'is given the value"1."(in place of its default value"0."),AGCURVwill behave as if the argumentsXVECandIIEXhad been interchanged with the argumentsYVECandIIEY, so that X-coordinate values refer to vertical distances, and Y-coordinate values to horizontal distances, on the graph. This parameter affectsAGSTUPin a similar manner, thus allowing one to plot "X as a function of Y". iconic tbh.
KDSHβ an input expression of typeINTEGERthat specifies the dashed-line pattern to be used in drawing the curve. (Since the routinesDASHD,FRSTD,VECTD, andLASTD, in the package Dashline, are used to draw the curve, it may have its own particular dashed-line pattern.) IfKDSHis zero, the user is assumed to have done his own call toDASHD;AGCURVwill do no such call.- If
KDSHis zero, the user is assumed to have done his own call toDASHD;AGCURVwill do no such call. - If
KDSHis non-zero and negative, the functionMOD(-KDSH-1,26)+1determines which of 26 "alphabetic" patterns is to be used; each of these generates a solid line interrupted by one of the letters of the alphabet. The value 1 implies that an"A"will be used, the value 2 that a"B"will be used, . . . the value 27 that an"A"will be used again, etc. - If
KDSHis non-zero and positive, the functionMOD(KDSH-1,n)+1determines which of n "user" patterns is to be used; these n patterns are defined by the parameters in the group named'DASH.'β the default values specify one solid-line pattern.
- If
Note: The routinesEZYandEZXY, which draw one curve per call, always callAGCURVwithKDSH = 1. The routinesEZMYandEZMXY, which draw one or more curves per call, callAGCURVwithKDSH = ISIGN(p,q), where p is the number of the curve being drawn (p is between 1 andMANY, inclusive) and q is the current integral value of'DASH/SELECTOR.'.
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical bestie, nothing new here π
β EXAMPLES β
Use the ncargex command to see the following relevant example: agex13.
π ACCESS π
To use AGCURV or c_agcurv, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. To get smoother curves, drawn using spline interpolation, also load libdashsmth.o. Or, you can use the ncargf77 command to compile your program and load the above libraries, then, to get smoother curves, use the -dashsmth option. slay. β¨
π MESSAGES π
See the autograph man page for a description of all Autograph error messages and/or informational messages.
π SEE ALSO π
Online: autograph, agback, agbnch, agchax, agchcu, agchil, agchnl, agdshn, aggetc, aggetf, aggeti, aggetp, aggetr, agpwrt, agrstr, agsave, agsetc, agsetf, agseti, agsetp, agsetr, agstup, agutol, anotat, displa, ezmxy, ezmy, ezxy, ezy
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π«Ά 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!! π this one lived on UNIX, dated March 1993, and it goes by AGCURV(3NCARG) β thanks for reading, mwah πβ¨π¦
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms