ribbon
Ribbon plot.
Syntax
- ribbon(Z)
- ribbon(Y, Z)
- ribbon(Y, Z, width)
- ribbon(ax, ...)
- s = ribbon(...)
Input argument
- Z - z-coordinates: vector or matrix.
- Y - y-coordinates: vector or matrix.
- width - ribbon width.
- ax - a scalar graphics object value: parent container, specified as a axes.
Output argument
- s - a vector of surface objects.
Description
ribbon(Z) plots a 3D ribbon graph based on the matrix Z with the values of Y defining the y-axis of the graph.
ribbon(Y, Z) plots a 3D ribbon graph based on the matrix Y with the values of Z defining the z-axis of the graph.
s = ribbon(...) returns a vector of surface objects.
Note that Y and Z must have the same size.
Example
f = figure();
Y = peaks(25);
ribbon(Y)
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET