Next: Plot Annotations, Previous: Specialized Two-Dimensional Plots, Up: Plotting
The Matlab-style three-dimensional plotting commands are:
Plot a mesh given matrices x, and y from
meshdom
and a matrix z corresponding to the x and y coordinates of the mesh. If x and y are vectors, then a typical vertex is (x(j), y(i), z(i,j)). Thus, columns of z correspond to different x values and rows of z correspond to different y values.See also: meshgrid, contour.
Given vectors of x, y, and z coordinates, return three dimensional arrays corresponding to the x, y, and z coordinates of a mesh. Given only x and y, return matrices corresponding to the x and y coordinates of a mesh. The rows of xx are copies of x, and the columns of yy are copies of y. If y is omitted, then it is assumed to be the same as x.
See also: mesh, contour.