LinePlot.Create

Prototypes

static LinePlot Create( DataObject dobj, String sXVarName, Matrix mYVarNames <, boolean bShow> )

static LinePlot Create( String sDataName, Matrix mX, Matrix mY <, boolean bShow> )

Return Value

The return value is a reference to the newly created LinePlot object.

Parameters

DataObject dobj
The DataObject containing the variables you want to plot.

String sXVarName
The name of the variable to assign to the X axis.

Matrix mYVarNames
A vector containing the names of the variables 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
A vector containing coordinate data for the X axis. This vector is used to create a DataObject and then that DataObject is used to create a LinePlot.

Matrix mY
A matrix containing coordinate data for the Y axis. Each column in this matrix represents the Y coordinate data for a different line in the plot. This matrix is added to the same DataObject as the mX vector.

Remarks

This method creates a line plot.

Example
x = { 1, 2, 3, 4, 5, 6, 7, 8 };
y = { 2, 4, 8, 16, 32, 64, 128, 256 };
LinePlot.Create( "Sample Data", x, y );
See Also

LinePlot.CreateWithGroup
LinePlot.AddVar
DataObject