SETYLOG - DADiSP

DADiSP Worksheet Functions > Function Categories > Plot Attributes > SETYLOG

 

SETYLOG

Purpose:

Turns log scales On/Off for the Y axis of a Window.

Syntax:

SETYLOG(win, mode, subtic, powtic)

win

-

Optional. A window, defaults to the current window.

mode

-

Optional. An integer, the Y log scale mode:

0:

Linear axis.

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 Y axis is set to log Y scales or unset to linear Y scales.

 

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

Example:

setylog(1)

 

turns on Y axis log scaling.

Example:

setylog(1, 1)

 

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

Example:

setylog(0)

 

turns off Y axis log scaling.

Example:

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

 

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

 

image\setylogpic.gif

Remarks:

SETYLOG with no arguments returns the current Y log axis setting.

 

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

See Also:

LOGLOG

SEMILOGX

SEMILOGY

SETXLOG

YSUBTIC