File: display.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 (129 lines) | stat: -rw-r--r-- 4,000 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>Displaying Data in GrADS</title>
</head>
<body bgcolor="e0f0ff" text="#000000">

<a href="#DDP">Drawing Data Plots</a><br>
<a href="#CTD">Clearing the Display</a><br>
<a href="#GOT">Graphics Output Types</a><br>
<a href="advdisplay.html">Advanced Display Options</a><br>
<p>
<hr>
<a name="DDP"><h2>Drawing Data Plots</h2></a>

The <code>display</code> command is how you actually display data (output
expressions) plots via the graphics output window.  The command
is:<p>

<dd><code><a href="gradcomddisplay.html">display</a> <i>expression</i></code><p>

or<p>

<dd><code>d <i>expression</i></code><p>

The simplest <code><i>expression</i></code> is a variable abbreviation.<p>

If you display when <b>all</b> dimensions are fixed, you get a <b>single</b>
value which is typed out.<p>

If you display when <b>one</b> dimension varies, you get a <b>1-D line
graph</b> by default.<p>

If you display when <b>two</b> dimensions are varying, you get a <b>2-D
contour plot</b> by default.<p>

A variety of <a href="#GOT">plot types</a> are available in addition to the above
defaults.<p>

<a name="CTD"><h2>Clearing the Display</h2></a><p>

GrADS will overlay the output from each display command. To clear
the display, enter:<p>

<dd><code><a href="gradcomdclear.html">clear</a></code> (or just <code>c</code>)<p>

Issued without parameters, the <code>clear</code> command does pretty heavy
duty clearing of many of the GrADS internal settings. Parameters
can be added to limit what is cleared when using more advanced
features, for example:<p>
<ul>
<code>c events</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flushes the events
buffer (e.g., mouse clicks)<br>
<code>c graphics</code>&nbsp;&nbsp;&nbsp;&nbsp; clears the graphics, but <b>not</b> the
widgets <br>
<code>c hbuff</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clears
the display buffer when in double buffer mode</ul><p>

WARNING: If you make any error in the syntax of clear then
GrADS
does the full clear...<p>

<a name="GOT"><h2>Graphics Output Types</h2></a>

<p>
Before you can display a graph of your data, you will need to set
the type of plot you want and, probably, some other graphics
parameters as well.

<p>
By default, when one dimension varies, you get a line graph, and
when two dimensions vary, you get a contour plot.  These defaults
can be changed by the command:

<p>
<ul>
<code>
<a href="gradcomdsetgxout.html">set gxout</a> <i>graphics_type</i>
</code>
</ul>

<p>
Some examples of <code><i>graphics_type</i></code> are <code>contour,
shaded, grid, bar, vector,</code> or <code>streamline</code>. For a
complete list, see the <a href="gradcomdsetgxout.html">reference
page</a>.

<p>
There are many options that can be set to control how the
data will be displayed for each <code><i>graphics_type</i></code>.  

<p>
For the graphics output types <code>vector, stream,</code> and
<code>barb</code>, the plotting routines need two result grids, where the
first result grid is treated as the U component, and the second result
grid is treated as the V component. These two result grids are
provided to the <a href="gradcomddisplay.html">display</a> command by
entering two expressions separated by a semicolon:
<p>
<ul>
<code>
display u ; v<br>
display ave(u,t=1,t=10) ; ave(v,t=1,t=10)<br>
</code>
</ul>

<p>
For the graphics output types <code>vector</code> and
<code>stream</code>, you can specify a third result grid that will be used to
colorize the vectors or streamlines:

<p>
<ul>
<code>
display u ; v ; mag(u,v)<br>
display u ; v ; hcurl(u,v)<br> 
</code>
</ul>

<p>
For a graphics output type <code>wxsym</code>, each value at a station
location is assumed to be a wx symbol code number. To see a chart of
all available wx symbols and their corresponding code numbers, run the
sample script <code>wxsym.gs</code>.

</body>
</html>