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

 

BARSTYLE

Purpose:

Sets the vertical reference of a 2D bar plot.

Syntax:

BARSTYLE(win, mode)

win

-

Optional. A Window, defaults to the current Window.

mode

-

Optional. An integer, the bar style:

0:

Reference bars to 0.0 (default)

1:

Bar bottoms start at the Window bottom

Returns:

If mode is not specified,  returns the current bar style.

Example:

W1: gnorm(10, 1);bars;barstyle(1)

W2: W1;bars;barstyle(0)

 

The bars in W1 are drawn from a vertical reference of 0.0 (the default), while the bars in W2 begin at the bottom of the Window.

Remarks:

BARSTYLE only effects 2D bar charts.

 

BARSTYLE is a Window property. All bar plots plotted in the Window will be drawn in the current BARSTYLE mode.

See Also:

BARCTR

BARGAP

BARS

BARTOP