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

NAME

6       GRID - Draws an unlabeled grid.
7

SYNOPSIS

9       CALL GRID (MJRX, MNRX, MJRY, MNRY)
10

C-BINDING SYNOPSIS

12       #include <ncarg/ncargC.h>
13
14       void c_grid (int mjrx, int mnrx, int mjry, int mnry)
15

DESCRIPTION

17       MJRX, MNRX, MJRY, and MNRY
18                   (input expressions of type INTEGER) specify the major and
19                   minor divisions of the horizontal (X) and vertical (Y) axes
20                   of the current viewport. The meanings of these parameters
21                   depend on the current setting of the internal parameter
22                   ´LS´ of SPPS:
23
24                   ·      If the value of ´LS´ implies that the axis is
25                          linear: MJRX(Y) specifies the number of major
26                          divisions of the X(Y) axis and MNRX(Y) specifies the
27                          number of minor divisions within each major
28                          division. In each case, the value specifies the
29                          number of spaces between grid lines or ticks rather
30                          than the number of lines or ticks. Including the
31                          ones at the ends of the axes, there is always one
32                          more major division line or mark than the number of
33                          major divisions specified by MJRX(Y). Similarly,
34                          there is always one less minor division line or tick
35                          per major division than the number of minor
36                          divisions per major division specified by MNRX(Y).
37
38                   ·      If the value of ´LS´ implies that the axis is
39                          logarithmic: Each major division point occurs at a
40                          value 10**MJRX(Y) times the previous point. For
41                          example, if the minimum X-axis value were 3., the
42                          maximum X-axis value 3000. and MJRX 1, then the
43                          major division points would be 3., 30., 300., and
44                          3000. If MNRX(Y).LE.10, there are nine minor
45                          divisions within each major division. For example,
46                          between 3. and 30., there would be minor division
47                          points at 6., 9., 12., .  . . 27. If MNRX(Y).GT.10.,
48                          minor divisions are omitted.
49

C-BINDING DESCRIPTION

51       The C-binding argument descriptions are the same as the FORTRAN
52       argument descriptions.
53

USAGE

55       The statement
56
57          CALL GRID (MJRX,MNRX,MJRY,MNRY)
58
59       is equivalent to
60
61          CALL GRIDAL (MJRX,MNRX,MJRY,MNRY,0,0,0,0.,0.)
62

EXAMPLES

64       Use the ncargex command to see the following relevant example: tgrida.
65

ACCESS

67       To use GRID or c_grid, load the NCAR Graphics libraries ncarg,
68       ncarg_gks, and ncarg_c, preferably in that order.
69

SEE ALSO

71       Online: gridall, gridall_params, gacolr, gagetc, gageti, gagetr,
72       gasetc, gaseti, gasetr, gridal, gridl, halfax, labmod, perim, periml,
73       tick4, ticks, ncarg_cbind.
74
75       Hardcopy: NCAR Graphics Fundamentals, UNIX Version
76
78       Copyright (C) 1987-2007
79       University Corporation for Atmospheric Research
80
81       This documentation is free software; you can redistribute it and/or
82       modify it under the terms of the GNU General Public License as
83       published by the Free Software Foundation; either version 2 of the
84       License, or (at your option) any later version.
85
86       This software is distributed in the hope that it will be useful, but
87       WITHOUT ANY WARRANTY; without even the implied warranty of
88       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
89       General Public License for more details.
90
91       You should have received a copy of the GNU General Public License along
92       with this software; if not, write to the Free Software Foundation,
93       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
94
95
96
97UNIX                              March 1993                      GRID(3NCARG)
Impressum