**grid_display_test**,
a MATLAB code which
calls grid_display(), which
reads an ASCII file defining a set of points on a 1D, 2D or 3D grid
or sparse grid, and displays a plot of those points,
inside a plot frame of user-specified range
**[Rmin,Rmax]**.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

grid_display, a MATLAB code which reads a file of points on a grid or sparse grid, displays the grid and saves the image in a Portable Network graphics (PNG) file;

- grid_display_test.m, calls all the tests;
- grid_display_test.sh, runs all the tests;
- grid_display_test.txt, the output file.

A 1D example:

grid_display ( 'hermite_o7_x.txt', -5, +5 )

- hermite_o7_x.txt, 7 points of a Hermite quadrature rule.
- hermite_o7.png, the PNG image of the points.

A 2D example:

grid_display ( 'f2_d2_level5_x.txt', -1, +1 )

- f2_d2_level5_x.txt, a sample input file, containing 145 points in the region [-1,1]x[-1,1], associated with a Fejer Type 2 rule.
- f2_d2_level5.png, the PNG image of the points.

A 3D example of a sparse grid using Newton Cotes Closed points,

grid_display ( 'ncc_d3_level3_x.txt', 0, +1 )

- ncc_d3_level3_x.txt, a sample input file, containing 69 points in the region [0,1]x[0,1]x[0,1], associated with a Newton Cotes Closed rule.
- ncc_d3_level3.png, a PNG image of the points.

A 3D example of a sparse grid using Clenshaw Curtis points:

grid_display ( 'cc_d3_level2_x.txt', -1, +1 )

- cc_d3_level2_x.txt, the point coordinates.
- cc_d3_level2.png, a PNG image of the points.