WINFLIPX

Purpose:

Flips the X scales of a window.

Syntax:

WINFLIPX(win, lr)

win

-

Optional. A window, defaults to the current Window.

lr

-

Optional. An integer, the scales mode:

 

0:

left to right

 

1:

right to left (default)

Returns:

Nothing, the X scales are flipped.

Example:

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.

Example:

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.

Remarks:

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.

See Also:

SETX

SETXAUTO

WINFLIPY