SETXLOG

Purpose:

Turns the log scales on/off for the X axis of a Window.

Syntax:

SETXLOG(win, mode, subtic, powtic)

win

-

Optional. A window, defaults to the current window.

mode

-

Optional. An integer, the X log scale mode:

0:

Linear axis (default).

1:

Log axis.

If not specified, returns the current setting.

subtic

-

Optional. An integer, label subtic values:

0:

Do not label subtics (default).

1:

Label subtics.

powtic

-

Optional. An integer, log tic format:

0:

Use decimal tic values (default).

1:

Use 10N tic values.

Returns:

Nothing, the X axis is set to log X scales or unset to linear X scales.

 

If no integer arguments are specified, returns the current X log axis setting.

Example:

setxlog(1)

 

turns on X axis log scaling.

Example:

setxlog(1, 1)

 

turns on X axis log scaling with labeled sub-tics.

Example:

setxlog(0)

 

turns off X axis log scaling.

Example:

W1: (1..1000)^2;setxlog(1, 0, 1);gridhv

 

Creates a quadratic series ranging 1 to 10e6 and displays the series with a log X axis labeled using 10N powers.

 

image\setxlogpic.gif

Remarks:

SETXLOG with no arguments returns the current X log axis setting.

 

See SEMILOGX to set the X axis to log scales and the Y axis to linear scales.

See Also:

LOGLOG

SEMILOGX

SEMILOGY

SETYLOG

XSUBTIC