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

NAME

6       GRIDL - Draws a labeled grid with each major division labeled with its
7       numeric value.
8

SYNOPSIS

10       CALL GRIDL (MJRX,MNRX,MJRY,MNRY)
11

C-BINDING SYNOPSIS

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

DESCRIPTION

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

C-BINDING DESCRIPTION

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

USAGE

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

EXAMPLES

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

ACCESS

68       To use GRIDL or c_gridl, load the NCAR Graphics libraries ncarg,
69       ncarg_gks, and ncarg_c, preferably in that order.
70

SEE ALSO

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