static ScatterPlot Create( DataObject dobj, String sXVarName, String sYVarName <, boolean bShow> )
static ScatterPlot Create( String sDataName, Matrix mX, Matrix mY <, boolean bShow> )
The return value is a reference to the newly created ScatterPlot object.
DataObject dobj
The DataObject containing the variables you want to plot.
String sXVarName
The name of the variable you want to assign to the X axis.
String sYVarName
The name of the variable you want to assign to the Y axis.
boolean bShow
If bShow is true, the plot's window is displayed. If bShow is false, the plot's window is hidden. Calling this method without specifying bShow is
equivalent to calling it with bShow equal to true.
String sDataName
The name to assign to the DataObject created internally by this method.
Matrix mX, mY
Vectors that contain the data you want to plot. These vectors are used to create a DataObject and then that DataObject is used to create a ScatterPlot.
This method creates a two-dimensional scatter plot.
x = { 1 2 3 4 5 6 7 8 }; y = { 2 1 4 5 6 5 6 9 }; ScatterPlot.Create( "Sample Data", x, y );