1POINTS(3NCARG)                   NCAR GRAPHICS                  POINTS(3NCARG)
2
3
4

NAME

6       POINTS - draws a marker at each of a series of specified positions in
7       the user coordinate system.  The markers can also be connected by
8       drawing lines between them.
9

SYNOPSIS

11       CALL POINTS (PX,PY,NP,IC,IL)
12

C-BINDING SYNOPSIS

14       #include <ncarg/ncargC.h>
15
16       void c_points (float *px, float *py, int np, int ic, int il)
17

DESCRIPTION

19       PX          (an input array of type REAL) defines the X user
20                   coordinates where a series of NP markers are to be drawn.
21
22       PY          (an input array of type REAL) defines the Y user
23                   coordinates where a series of NP markers are to be drawn.
24
25       NP          (an input expression of type INTEGER) specifies the number
26                   of markers to be drawn.
27
28       IC          (an input expression of type INTEGER) describes the type of
29                   marker to be drawn, as follows:
30
31                   IC < 0 - draw a GKS polymarker of type -IC, as follows:
32
33                     -1  requests a dot (.),
34
35                     -2  requests a plus (+),
36
37                     -3  requests an asterisk (*),
38
39                     -4  requests a circle (o), and
40
41                     -5  requests a cross (x).
42
43                   The polymarker size and color can be set by calling the GKS
44                   routines GSMKSC, GSCR, and GSPMCI before calling POINTS.
45
46                   IC = 0 - draw a dot (.).  Effect is the same as IC = -1.
47
48                   IC > 0 - draw the FORTRAN77 character CHAR(IC).
49
50                   In this case, the GKS routine GTX is used to draw the
51                   specified character CHAR(IC) at each of the NP points.
52                   Each character is drawn with the horizontal and vertical
53                   text alignment centered at the specified point with a call
54                   to the GKS routine GSTXAL.  The horizontal and vertical
55                   text alignment parameters are then restored to their
56                   previous values.  Other text attributes such as character
57                   orientation, character height, and color, can be set by
58                   calling GKS text attribute setting routines before the call
59                   to the routine POINTS.
60
61       IL          (a input expression of type INTEGER) determines if the
62                   markers are to be connected with line segments.
63
64                   IL = 0 - do not connect the markers with line segments.
65
66                   IL .NE. 0 - connect the markers with line segments.
67

C-BINDING DESCRIPTION

69       The C-binding argument descriptions are the same as the FORTRAN
70       argument descriptions.
71

USAGE

73       If the routine SET has not been called, or if the last call to SET
74       specified linear mappings in X and Y, and the value of IC specifies a
75       GKS polymarker, then the GKS routine GPM is called to draw the
76       polymarkers.  If, in addition, IL is non-zero, the GKS routine GPL is
77       called to draw the line segments.  In all other cases, NCAR Graphics
78       routines are used to draw the more complicated set of graphical
79       objects.
80
81       Since a call to POINTS can result in subsequent calls to the GKS
82       routines GPM or GPL, various polymarker and polyline attributes may
83       need to be set before the routine POINTS is called.  Polymarker
84       attributes which can be set are listed above in the DESCRIPTION
85       Section.  Polyline attributes which can be set include polyline type
86       (call GSLN), polyline line width (call GSLWSC), and color (call GSCR
87       and GSPLCI).
88
89       A call to the routine POINTS causes the SPPS polyline buffer to be
90       flushed.  Refer to the man page for the routine PLOTIF.
91

EXAMPLES

93       Use the ncargex command to see the following relevant examples: agex11,
94       cmptra.
95

ACCESS

97       To use POINTS or c_points, load the NCAR Graphics libraries ncarg,
98       ncarg_gks, and ncarg_c, preferably in that order.
99

SEE ALSO

101       Online: gpl, gsln, gslwsc, gpm, gsmk, gsmksc, gtx, gstxal, gstxp,
102       gstxfp, gschh, gschsp, gschup, gschxp, gscr, gstxci, gsplci, gspmci,
103       spps, spps_params, plotif, ngdots, point, ncarg_cbind
104
105       Hardcopy: NCAR Graphics Fundamentals, UNIX Version; User's Guide for
106       NCAR GKS-0A Graphics
107
109       Copyright (C) 1987-2007
110       University Corporation for Atmospheric Research
111
112       This documentation is free software; you can redistribute it and/or
113       modify it under the terms of the GNU General Public License as
114       published by the Free Software Foundation; either version 2 of the
115       License, or (at your option) any later version.
116
117       This software is distributed in the hope that it will be useful, but
118       WITHOUT ANY WARRANTY; without even the implied warranty of
119       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
120       General Public License for more details.
121
122       You should have received a copy of the GNU General Public License along
123       with this software; if not, write to the Free Software Foundation,
124       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
125
126
127
128UNIX                              March 1993                    POINTS(3NCARG)
Impressum