CURVE(3NCARG)

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

✨ 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 type REAL that defines the X user coordinates of the curve. Array PX is of length NP. no notes, it's just the x's fr fr πŸ’«
  • PY β€” an input array of type REAL that defines the Y user coordinates of the curve. Array PY is of length NP. and these are the y's 🫢
  • NP β€” an input expression of type INTEGER that 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 (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