File: gradcomdsetgrid.html

package info (click to toggle)
grads 3%3A2.2.1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,396 kB
  • sloc: ansic: 61,645; sh: 10,612; makefile: 206; python: 3
file content (72 lines) | stat: -rw-r--r-- 2,301 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>GrADS Command: set grid</title>
</head>
<body bgcolor="e0f0ff" text="#000000">

<h2><b>set grid</b></h2>
<p>
<code>set grid <i>status &lt;linestyle&gt; &lt;color#&gt;</i></code>

<p>
Specifies the characteristics of the displayed grid lines. Default is to draw
horizontal and vertical grid lines with color number 15 (grey) and linestyle 5 (dotted).

<p>
Options for <code><i>status</i></code> are:
<ul>
<code>on&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code>
- both latitude and longitude lines are drawn<br>
<code>off&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code>
- no grid lines lines are drawn<br>
<code>horizontal&nbsp;</code>
- only latitude grid lines are drawn<br>
<code>vertical&nbsp;&nbsp;&nbsp;</code> 
- only longigude grid lines are drawn<br>
</ul>

<p>
Options for <code><i>linestyle</i></code> are:
<ul>
<code>1 </code>- solid <br>          
<code>2 </code>- long dash <br>  
<code>3 </code>- short dash <br>  
<code>4 </code>- long dash, short dash <br>  
<code>5 </code>- dotted <br>  
<code>6 </code>- dot dash <br>  
<code>7 </code>- dot dot dash <br>  
</ul>

<p>
<code><i>color#</i></code> may be one of the <a href="16colors.html">16 GrADS default colors</a> 
or a new color defined with <a href="gradcomdsetrgb.html"><code>set rgb</code></a>. 

<p>
<h3>Usage Notes</h3>
<ol>
<li>Changes to the grid display characteristics 'stick' until reset by a new
execution of <code>set grid</code>.
<p>
<li>You cannot specify a <code><i>color#</i></code> without also specifying
a <code><i>linestyle</i></code>.
<p>
<li>Grid lines are aligned with the labeled tick marks on the X and Y
axes. GrADS chooses appropriate defaults for spacing of the labeled
tick marks, but these defaults may be overridden by the commands <a
href="gradcomdsetxaxis.html">set xaxis</a>, <a
href="gradcomdsetyaxis.html">set yaxis</a>, <a
href="gradcomdsetxlint.html">set xlint</a>, <a
href="gradcomdsetylint.html">set ylint</a>, <a
href="gradcomdsetxlevs.html">set xlevs</a>, and <a
href="gradcomdsetylevs.html">set ylevs</a>.  Please consult these
reference pages for more information.
</ol>

<p>
<h3>Examples </h3>

</body>
</html>