comparison doc/interpreter/geometry.txi @ 12267:8ef6a4373310 release-3-4-x

Add undocumented function trisurf to manual.
author Rik <octave@nomad.inbox5.com>
date Thu, 27 Jan 2011 19:12:31 -0800
parents fd0a3ac60b0e
children 72c96de7a403
comparison
equal deleted inserted replaced
12266:a319d7ed61c6 12267:8ef6a4373310
92 @end menu 92 @end menu
93 93
94 @node Plotting the Triangulation 94 @node Plotting the Triangulation
95 @subsection Plotting the Triangulation 95 @subsection Plotting the Triangulation
96 96
97 Octave has the functions @code{triplot} and @code{trimesh} to plot the 97 Octave has the functions @code{triplot}, @code{trimesh}, and @code{trisurf}
98 Delaunay triangulation of a 2-dimensional set of points. 98 to plot the Delaunay triangulation of a 2-dimensional set of points.
99 99
100 @DOCSTRING(triplot) 100 @DOCSTRING(triplot)
101 101
102 @DOCSTRING(trimesh) 102 @DOCSTRING(trimesh)
103 103
104 The difference between @code{triplot} and @code{trimesh} is that the 104 @DOCSTRING(trisurf)
105 former only plots the 2-dimensional triangulation itself, whereas the 105
106 second plots the value of some function @code{f (@var{x}, @var{y})}. 106 The difference between @code{triplot}, and @code{trimesh} or @code{triplot},
107 An example of the use of the @code{triplot} function is 107 is that the former only plots the 2-dimensional triangulation itself, whereas
108 the second two plot the value of a function @code{f (@var{x}, @var{y})}. An
109 example of the use of the @code{triplot} function is
108 110
109 @example 111 @example
110 @group 112 @group
111 rand ("state", 2) 113 rand ("state", 2)
112 x = rand (20, 1); 114 x = rand (20, 1);
115 triplot (tri, x, y); 117 triplot (tri, x, y);
116 @end group 118 @end group
117 @end example 119 @end example
118 120
119 @noindent 121 @noindent
120 that plot the Delaunay triangulation of a set of random points in 122 which plots the Delaunay triangulation of a set of random points in
121 2-dimensions. 123 2-dimensions.
122 @ifnotinfo 124 @ifnotinfo
123 The output of the above can be seen in @ref{fig:triplot}. 125 The output of the above can be seen in @ref{fig:triplot}.
124 126
125 @float Figure,fig:triplot 127 @float Figure,fig:triplot