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-2007
62 University Corporation for Atmospheric Research
63
64 This documentation is free software; you can redistribute it and/or
65 modify it under the terms of the GNU General Public License as
66 published by the Free Software Foundation; either version 2 of the
67 License, or (at your option) any later version.
68
69 This software is distributed in the hope that it will be useful, but
70 WITHOUT ANY WARRANTY; without even the implied warranty of
71 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
72 General Public License for more details.
73
74 You should have received a copy of the GNU General Public License along
75 with this software; if not, write to the Free Software Foundation,
76 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
77
78
79
80UNIX March 1993 CURVE(3NCARG)