DADiSP Worksheet Functions > Function Categories > Plot Attributes > WINFLIPX
Flips the X scales of a window.
WINFLIPX(win, lr)
win |
- |
Optional. A window, defaults to the current Window. |
||||||
lr |
- |
Optional. An integer, the scales mode:
|
Nothing, the X scales are flipped.
W1: integ(gnorm(1000, 1));
W2: w1;winflipx
W1 and W2 contain the same series. The X scales go left to right from the smallest to the largest value in W1 and the X scales go left to right from the largest to the smallest value in W2.
W1: density(spline2(rand(5), 20));
W2: w1;winflipx
W1 and W2 contain the same image. The X scales go left to right from the smallest to the largest value in W1 and the X scales go left to right from the largest to the smallest value in W2.
By default, the X scales of a Window proceed left to right from the smallest value to the largest value. WINFLIPX flips the X scales such that the values proceed left to right from the largest value to the smallest value.
WINFLIPX only changes the direction of the X scales of a Window, the actual data remains unchanged.