zscale
Chooses a linear or logarithmic scale for the z-axis.
Category: Graphics > Formatting and Annotation
Syntax
zscale('linear')
Uses a linear z-axis.
zscale('log')
Uses a base-10 logarithmic z-axis; data must be positive.
s = zscale
Returns the current scale.
Description
A log scale spreads out data that spans several orders of magnitude. It is the z analog of xscale and yscale and sets the ZScale property of the axes.
Input arguments
'linear' | 'log'- Scale name.
Output arguments
s- The current scale, as text.
Example
Request a log z-axis
[X, Y] = meshgrid(1:5);
surf(X, Y, 10.^X)
zscale('log')
MatLivre accepts the call but still draws a linear z-axis.