Specifies the x-axis coordinate range of a Window.
SETX(win, xleft, xright, mode)
win |
- |
Optional. Window reference. Defaults to the current Window. |
||||||
xleft |
- |
A real. Left-hand Window boundary. |
||||||
xright |
- |
A real. Right-hand Window boundary. |
||||||
mode |
- |
Optional, An integer, the target value of xleft and xright.
|
Nothing, the displayed x-axis coordinates are set.
W1: gnorm(1000,1);setx(400, 600)
Generates a 1000 point random series. The left-hand side of the Window is set to 400 and the right side is set to 600. The default coordinates would have been 0.0 and 999.0.
W2: gnorm(1000,1);sethunits("Time");settime("12:00");setx(todstr("12:05"), todstr("12:08"), 1)
Generates a 1000 point random series. The left-hand side of the Window is set to 12:05 and the right side is set to 12:08. The window displays 2 seconds of data in clock time.
W3: gnorm(1000,1/1000);setx(400, 600, 2)
Generates a 1000 point random series. The left-hand side of the Window is set to point number 400 at 0.4 and the right side is set to point number 600 at 0.6. The window displays 201 samples (600 - 400 + 1).
W1: spline2(randn(5), 40);setplottype(4);rainbow;sethatch(0);gridhv
W2: W1;rainbow;setx(0, 2);sethatch(0);gridhv
W1 contains a high density 3D surface.
W2 contains the same surface, but sets the X plot range from 0 to 2. Values outside the X range are not displayed.
SETX will expand or compress the current units scale. To refresh the Window and redraw appropriate scales, toggle the [F5] key or Scales toolbar button.
See SETXAUTO to set the x-axis coordinates for autoscaling.
See SETXRANGE to set the x-axis autoscale coordinates and tics.
See SETXDATE to set the x-axis coordinates in date values for a series with a date horizontal units.
See SETXTIME to set the x-axis coordinates in time values for a series with a time horizontal units.