When the plot type is BAR, the DRAW command plots a bar chart using data from one column
of the current statistics matrix (reserved variable DAT). The column to be plotted is specified
by the XCOL command, and is stored in the first parameter of the reserved variable PAR. The
plotting parameters are specified in the reserved variable PPAR, which has the following form:
For plot type BAR, the elements of PPAR are used as follows:
of the display range). The default value is (–6.5,–3.1) for the hp48gII and (–6.5,–3.9) for the
corner of the display range). The default value is (6.5,3.2) for the hp48gII and (6.5,4.0) for the
• indep is either a name specifying a label for the horizontal axis, or a list containing such a name
and two numbers, with the smaller of the numbers specifying the horizontal location of the
first bar. The default value of indep is X.
• res is a real number specifying the bar width in user-unit coordinates, or a binary integer
specifying the bar width in pixels. The default value is 0, which specifies a bar width of 1 in
• axes is a list containing one or more of the following, in the order listed: a complex number
specifying the user-unit coordinates of the plot origin, a list specifying the tick-mark
annotation, and two strings specifying labels for the horizontal and vertical axes. The default
value is (0,0).
• ptype is a command name specifying the plot type. Executing the command BAR places the
command name BAR in PPAR.
• depend is a name specifying a label for the vertical axis. The default value is Y.
A bar is drawn for each element of the column in DAT. Its width is specified by res and its
height is the value of the element. The location of the first bar can be specified by indep;
otherwise, the value in (x
CONIC, DIFFEQ, FUNCTION, GRIDMAP, HISTOGRAM, PARAMETRIC,
PARSURFACE, PCONTOUR, POLAR, SCATTER, SLOPEFIELD, TRUTH, WIREFRAME,
Description: Draw Bar Plot Command: Plots a bar chart of the specified column of the current statistics
matrix (reserved variable DAT).
The data column to be plotted is specified by XCOL and is stored as the first parameter in
reserved variable PAR. The default column is 1. Data can be positive or negative, resulting in
bars above or below the axis. The y-axis is autoscaled, and the plot type is set to BAR.
When BARPLOT is executed from a program, the resulting plot does not persist unless
PICTURE, PVIEW (with an empty list argument), or FREEZE is subsequently executed.
A bar chart based on DAT.
FREEZE, HISTPLOT, PICTURE, PVIEW, SCATRPLOT, XCOL
) is a complex number specifying the lower left corner of PICT (the lower left corner
) is a complex number specifying the upper right corner of PICT (the upper right
) is used.
) indep res axes ptype depend }
Full Command and Function Reference 3-21