-
Notifications
You must be signed in to change notification settings - Fork 55
/
grids_display.html
306 lines (267 loc) · 8.63 KB
/
grids_display.html
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<html>
<head>
<title>
GRIDS_DISPLAY - Plot one Grid or Sparse Grid on Another
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
GRIDS_DISPLAY <br> Plot one Grid or Sparse Grid on Another
</h1>
<hr>
<p>
<b>GRIDS_DISPLAY</b>
is a MATLAB program which
can read two ASCII
files defining grids or sparse grids in 2D or 3D. The first grid is
plotted "lightly", in hollow blue dots, while the second is plotted
with solid red dots. The image is automatically
saved to a <b>PNG</b> file.
</p>
<h3 align = "center">
Usage:
</h3>
<p>
<blockquote>
<b>grids_display</b> ( <i>'file_name1'</i>, <i>'file_name2'</i>,
<i>rmin</i>, <i>rmax</i> )
</blockquote>
where
<ul>
<li>
<i>'file_name1'</i> is the file containing the first grid, to be shown in hollow blue.
</li>
<li>
<i>'file_name2'</i> is the file containing the second grid, to be shown in solid red.
</li>
<li>
<i>rmin, rmax</i> are the range in X, Y (and possibly Z) over which the plot
is to be displayed. This is typically either [-1,1] or [0,1].
Some grids don't
include points on the boundary, so it is useful to be able to
specify the plot range, and thus force the boundaries to show up,
and to show up "in the same place" for multiple plots. Also,
this feature allows you to zoom in on part of the grid, if you wish.
</li>
</ul>
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>GRIDS_DISPLAY</b> is available in
<a href = "../../m_src/grids_display/grids_display.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/cc_display/cc_display.html">
CC_DISPLAY</a>,
a MATLAB program which
displays points on various grids derived from the Clenshaw Curtis rule.
</p>
<p>
<a href = "../../m_src/circle_grid_display/circle_grid_display.html">
CIRCLE_GRID_DISPLAY</a>,
a MATLAB program which reads a matrix of integers, and draws a corresponding
grid of circles filled with color.
</p>
<p>
<a href = "../../m_src/gl_display/gl_display.html">
GL_DISPLAY</a>,
a MATLAB program which
displays points on various grids derived from the Gauss-Legendre rule.
</p>
<p>
<a href = "../../m_src/grid_display/grid_display.html">
GRID_DISPLAY</a>,
a MATLAB program which
reads a file of points on a grid or sparse grid, displays the grid and
saves the image in a PNG file;
</p>
<p>
<a href = "../../m_src/gridlines/gridlines.html">
GRIDLINES</a>,
a MATLAB library which
gives the user more control over drawing gridlines on a graph
than the builtin "grid on" command.
</p>
<p>
<a href = "../../m_src/ply_display/ply_display.html">
PLY_DISPLAY</a>,
a MATLAB program which
displays an image of a 3D graphics file in PLY format;
</p>
<p>
<a href = "../../datasets/quadrature_rules/quadrature_rules.html">
QUADRATURE_RULES</a>,
a dataset directory which
contains quadrature rules;
a number of examples of sparse grid quadrature rules are included.
</p>
<p>
<a href = "../../datasets/sparse_grid_cc/sparse_grid_cc.html">
SPARSE_GRID_CC</a>,
a dataset directory which
contains some sample sparse grids from the Clenshaw Curtis rule.
</p>
<p>
<a href = "../../datasets/sparse_grid_f2/sparse_grid_f2.html">
SPARSE_GRID_F2</a>,
a dataset directory which
contains some sample sparse grids from the Fejer Type 2 rule.
</p>
<p>
<a href = "../../datasets/sparse_grid_gp/sparse_grid_gp.html">
SPARSE_GRID_GP</a>,
a dataset directory which
contains some sample sparse grids from the Gauss Patterson rule.
</p>
<p>
<a href = "../../m_src/sparse_grid_hw/sparse_grid_hw.html">
SPARSE_GRID_HW</a>,
a MATLAB library which
creates sparse grids based on Gauss-Legendre, Gauss-Hermite,
Gauss-Patterson, or a nested variation of Gauss-Hermite rules,
by Florian Heiss and Viktor Winschel.
</p>
<p>
<a href = "../../datasets/sparse_grid_ncc/sparse_grid_ncc.html">
SPARSE_GRID_NCC</a>,
a dataset directory which
contains some sample sparse grids from the Newton Cotes Closed rule.
</p>
<p>
<a href = "../../datasets/sparse_grid_nco/sparse_grid_nco.html">
SPARSE_GRID_NCO</a>,
a dataset directory which
contains some sample sparse grids from the Newton Cotes Open rule.
</p>
<p>
<a href = "../../m_src/tensor_grid_display/tensor_grid_display.html">
TENSOR_GRID_DISPLAY</a>,
a MATLAB program which
can display the grid points of a tensor product rule used for
interpolation or quadrature, in 1D, 2D or 3D.
</p>
<p>
<a href = "../../data/xy/xy.html">
XY</a>,
a data directory which
contains some examples of 2D pointsets.
</p>
<p>
<a href = "../../m_src/xy_display/xy_display.html">
XY_DISPLAY</a>,
a MATLAB program which
can read a file of coordinates of points, and display an image of the
points in a MATLAB graphics window.
</p>
<p>
<a href = "../../cpp_src/xy_display_opengl/xy_display_opengl.html">
XY_DISPLAY_OPENGL</a>,
a C++ program which
can read a file containing 2D point coordinates, and display
an image of those points using Open GL.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "grids_display.m">grids_display.m</a>,
the source code.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
A 2D example which illustrates how a Clenshaw Curtis sparse grid of
level 4 is the sum of 5 Clenshaw Curtis product grids:
<ul>
<li>
<a href = "cc_d2_level4_x.txt">
cc_d2_level4_x.txt</a>,
the coordinates of points in a Clenshaw Curtis sparse grid of
level 4.
</li>
<li>
<a href = "cc_d2_o17x1_x.txt">
cc_d2_o17x1_x.txt</a>,
the coordinates of points in a Clenshaw Curtis 17x1 product grid.
</li>
<li>
<a href = "level4_o17x1.png">
level4_o17x1.png</a>,
a plot with the level 4 points in hollow blue and the 17x1
points in solid red.
</li>
<li>
<a href = "cc_d2_o9x3_x.txt">
cc_d2_o9x3_x.txt</a>,
the coordinates of points in a Clenshaw Curtis 9x3 product grid.
</li>
<li>
<a href = "level4_o9x3.png">
level4_o9x3.png</a>,
a plot with the level 4 points in hollow blue and the 9x3
points in solid red.
</li>
<li>
<a href = "cc_d2_o5x5_x.txt">
cc_d2_o5x5_x.txt</a>,
the coordinates of points in a Clenshaw Curtis 5x5 product grid.
</li>
<li>
<a href = "level4_o5x5.png">
level4_o5x5.png</a>,
a plot with the level 4 points in hollow blue and the 5x5
points in solid red.
</li>
<li>
<a href = "cc_d2_o3x9_x.txt">
cc_d2_o3x9_x.txt</a>,
the coordinates of points in a Clenshaw Curtis 3x9 product grid.
</li>
<li>
<a href = "level4_o3x9.png">
level4_o3x9.png</a>,
a plot with the level 4 points in hollow blue and the 3x9
points in solid red.
</li>
<li>
<a href = "cc_d2_o1x17_x.txt">
cc_d2_o1x17_x.txt</a>,
the coordinates of points in a Clenshaw Curtis 1x17 product grid.
</li>
<li>
<a href = "level4_o1x17.png">
level4_o1x17.png</a>,
a plot with the level 4 points in hollow blue and the 1x17
points in solid red.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 09 October 2011.
</i>
<!-- John Burkardt -->
</body>
</html>