BARCTR

Purpose:

Sets the centering of a 2D bar plot.

Syntax:

BARCTR(win, mode)

win

-

Optional. A Window, defaults to the current Window.

mode

-

Optional. An integer, the bar centering mode:

0:

Bars begin on values

1:

Bars centered on values (default)

Returns:

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

Example:

W1: gnorm(10, 1);bars;barctr(1);griddot;gridhv

W2: W1;bars;barctr(0);griddot;gridhv

 

The bars in W1 are centered around the data values (the default) while the bars in W2 begin at the data values (the default).

Remarks:

BARCTR only effects 2D bar charts.

 

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

See Also:

BARS

BARGAP

BARSTYLE

STEPCTR

STEPS