1CURVE(3NCARG) NCAR GRAPHICS CURVE(3NCARG)
2
3
4
6 CURVE - draws the curve defined by a specified series of points in the
7 user coordinate system. The "pen" (for subsequent calls to FRSTPT,
8 VECTOR, PLOTIF, and PLOTIT) is left at the location of the last point
9 in the curve.
10
12 CALL CURVE (PX,PY,NP)
13
15 #include <ncarg/ncargC.h>
16
17 void c_curve (float *px, float *py, int np)
18
20 PX (an input array of type REAL) defines the X user
21 coordinates of the curve. Array PX is of length NP.
22
23 PY (an input array of type REAL) defines the Y user
24 coordinates of the curve. Array PY is of length NP.
25
26 NP (an input expression of type INTEGER) specifies the number
27 of points in the curve.
28
30 The C-binding argument descriptions are the same as the FORTRAN
31 argument descriptions.
32
34 If the routine SET was not called, or if it was called with a linear
35 mapping in both the X and Y coordinates, then the GKS routine GPL is
36 called to output a polyline of length NP points. If the mapping in
37 either axis is logarithmic, the input coordinates are transformed and
38 drawn ten points at a time. (The last segment may be less than ten
39 points.)
40
41 Polyline type, line width, and color can also be set by calling the GKS
42 routines GSLN, GSLWSC, GSCR, and GSPLCI, before calling CURVE.
43
45 Use the ncargex command to see the following relevant examples: sfex01,
46 sfex02, and tsoftf.
47
49 To use CURVE or c_curve, load the NCAR Graphics libraries ncarg,
50 ncarg_gks, and ncarg_c, preferably in that order.
51
53 Online: gpl, gsln, gslwsc, gscr, gsplci, frstpt, vector, plotif, line,
54 spps, spps_params, ncarg_cbind
55
56 Hardcopy: NCAR Graphics Fundamentals, UNIX Version User's Guide for
57 NCAR GKS-0A Graphics; "The Use of X/Y Coordinates in NCAR Graphics" SCD
58 User Document
59
61 Copyright (C) 1987-2009
62 University Corporation for Atmospheric Research
63 The use of this Software is governed by a License Agreement.
64
65
66
67UNIX March 1993 CURVE(3NCARG)