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

 

STACK

Purpose:

Creates a vertical stacked bar from the values of a series or multi-series table.

Syntax:

STACK

Example:

{10, 25, 33, 11, 5, 20};stack

 

creates a vertical stacked bar of the six values and labels the right side of the bar.

Example:

grand(5,1);stack

 

generates a 5-point series of random numbers and displays the data points as a stack plot.

Remarks:

STACK operates on the current Window. It does not accept arguments. If the current Window contains a table, STACK displays as many vertical bars as number of columns in the table.

 

STACK is equivalent to SETPLOTSTYLE(7)

 

The color of each segment in the vertical stacked bar is dependent upon the Window color. The COLOR_INDEX of the Window color is the "starting index"; the color for each segment is incremented from the starting index by 1. That is, if the Window color is set to 1 (BLUE), the colors of the vertical stacked bar in the above example are: STRCOLOR (2), STRCOLOR(3), STRCOLOR(4), ..., STRCOLOR(7).

See Also:

BARS

HISTOGRAM

LINES

POINTS

SETPLOTSTYLE

STEM

STEPS

STICKS