DADiSP Worksheet Functions > Function Categories > Display and Manipulation > INHSERSTYLE

 

INHSERSTYLE

Purpose:

Causes the Window to inherit/not inherit its plotting style(s) from its data series.

Syntax:

INHSERSTYLE(win, inherit, sernum)

win

-

Optional. A window, defaults to the current Window.

inherit

-

Optional. An integer, the plot style inherit mode:

0:

Do not inherit plot style

1:

Inherit plot style from series (default)

sernum

-

Optional. An integer, the index specifying a data series. Defaults to 1, the primary series.

Example:

a = gnorm(10,1);setplotstyle(a, 10)

b = gnorm(10,1);setplotstyle(b, 3)

W1: a

W1: b

 

The series variable a has the stem plotting style set and variable b is set to a bar plot. By default, a window displays a series in plotting style of the series, so Window 1 plots variable a as a stem plot and variable b as a bar plot.

 

inhserstyle(w1, 0)

W1: a

W1: b

 

Window 1 no longer inherits the series plotting style, so each series is plotted in the Window’s plotting style, in this case a line plot.

Remarks:

By default, a Window displays a series in the plot style specified by the series. INHSERSTYLE can force the series to plot in the style specified by the Window.

 

Explicitly setting the Windows plotting style with LINES, POINTS, BARS has the effect of overriding the series plot style.

 

See INHWINSTYLE to have a series inherit the plot style of a Window.

See Also:

INHWINSTYLE

SETPLOTSTYLE

SETPLOTTYPE