DADiSP Worksheet Functions > Function Categories > Plot Attributes > SETZAUTO
Specifies the z-axis Window coordinates for autoscaling.
SETZAUTO(win, zbottom, ztop)
win |
- |
Optional. Window reference. Defaults to the current Window. |
zbottom |
- |
A real. Bottom Z boundary. |
ztop |
- |
A real. Top Z boundary. |
W1: spline2(randn(5), 10);setplottype(4);hot
W2: w1;hot;setzauto(-1, 1)
W1 contains a spline interpolated random array displayed as a Z surface.
W2 contains the same surface but sets the Z autoscale range from -1 to 1. The image is clipped to the Z auto range when autoscaled.
A Window can be autoscaled with the AUTOSCALE function, by pressing Ctrl-Home when the Window is activated, by pressing the Autoscale button or selecting Autoscale from the right click popup menu.
Use setzauto(-1, -1) to set automatic z-axis autoscaling. CLEAR also resets autoscaling to automatic.