Reference Guide

Full Command and Function Reference 3-217
Executing SCALEW changes the x-axis display range—the x
min
and x
max
components of the first
two complex numbers in the reserved variable PPAR. The plot origin (the user-unit coordinate of
the center pixel) is not changed.
Access: …µ
SCALEW
Input/Output:
Level 1/Argument 1 Level 1/Item 1
x
factor
See also: AUTO, SCALEH, XRNG
SCATRPLOT
Type: Command
Description: Draw Scatter Plot Command: Draws a scatterplot of (x, y) data points from the specified columns
of the current statistics matrix (reserved variable ΣDAT ).
The data columns plotted are specified by XCOL and YCOL, and are stored as the first two
parameters in the reserved variable ΣPAR. If no data columns are specified, columns 1
(independent) and 2 (dependent) are selected by default. The y-axis is autoscaled and the plot type
is set to SCATTER.
When SCATRPLOT is executed from a program, the resulting display does not persist unless
PICTURE or PVIEW is subsequently executed.
Access: …µ
SCATRPLOT
Input/Output: None
Example: The following program plots a scatter plot of the data in columns 3 and 4 of ΣDAT, draws a best fit
line, and displays the plot:
« 3 XCOL 4 YCOL SCATRPLOT BESTFIT ΣLINE STEQ
FUNCTION DRAW { # 0d # 0d } PVIEW 7 FREEZE »
See also: BARPLOT, PICTURE, HISTPLOT, PVIEW, SCLΣ, XCOL, YCOL
SCATTER
Type: Command
Description: Scatter Plot Type Command: Sets the plot type to SCATTER.
When the plot type is SCATTER, the DRAW command plots points by obtaining x and y
coordinates from two columns of the current statistics matrix (reserved variable ΣDAT). The
columns are specified by the first and second parameters in the reserved variable ΣPAR (using the
XCOL and YCOL commands). The plotting parameters are specified in the reserved variable
PPAR, which has this form:
{ (x
min
, y
min
), (x
max
, y
max
), indep, res, axes, ptype, depend }
For plot type SCATTER, the elements of PPAR are used as follows:
(x
min
, y
min
) is a complex number specifying the lower left corner of PICT (the lower left corner
of the display range). The default value is (–6.5,–3.1) for the HP 48gII and (–6.5,–3.9) for the
HP 50g and 49g+.
(x
max
, y
max
) is a complex number specifying the upper right corner of PICT (the upper right
corner of the display range). The default value is (6.5,3.2) for the HP 48gII and (6.5,4.0) for the
HP 50g and 49g+.
indep is a name specifying the independent variable. The default value of indep is X.
res is not used.
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).