GNU Octave Manual Version 3by John W. Eaton, David Bateman, Søren Hauberg Paperback (6"x9"), 568 pages ISBN 095461206X RRP £24.95 ($39.95) |

### 28.1.1 Plotting the Triangulation

Octave has the functions `triplot`

and `trimesh`

to plot the
Delaunay triangulation of a 2-dimensional set of points.

__Function File:__**triplot***(*`tri`,`x`,`y`)__Function File:__**triplot***(*`tri`,`x`,`y`,`linespec`)__Function File:__`h`=**triplot***(...)*- Plot a triangular mesh in 2D. The variable
`tri`is the triangular meshing of the points`(`

which is returned from`x`,`y`)`delaunay`

. If given, the`linespec`determines the properties to use for the lines. The output argument`h`is the graphic handle to the plot.See also plot, trimesh, delaunay

__Function File:__**trimesh***(*`tri`,`x`,`y`,`z`)__Function File:__`h`=**trimesh***(...)*- Plot a triangular mesh in 3D. The variable
`tri`is the triangular meshing of the points`(`

which is returned from`x`,`y`)`delaunay`

. The variable`z`is value at the point`(`

. The output argument`x`,`y`)`h`is the graphic handle to the plot.See also triplot, delaunay3

The difference between `triplot`

and `trimesh`

is that the
former only plots the 2-dimensional triangulation itself, whereas the
second plots the value of some function `f (`

.
An example of the use of the `x`, `y`)`triplot`

function is

rand ("state", 2) x = rand (20, 1); y = rand (20, 1); tri = delaunay (x, y); triplot (tri, x, y);

that plot the Delaunay triangulation of a set of random points in 2-dimensions.

ISBN 095461206X | GNU Octave Manual Version 3 | See the print edition |