static PolygonPlot Create( DataObject dobj, String sXVarName, String sYVarName, Matrix mIDVarNames <, boolean bShow> )
static PolygonPlot Create( String sDataName, Matrix mX, Matrix mY, Matrix mIDs <, boolean bShow> )
The return value is a reference to the newly created PolygonPlot object.
DataObject dobj
The DataObject containing the variables you want to plot.
String sXVarName
The name of the variable that contains the X coordinate data.
String sYVarName
The name of the variable that contains the Y coordinate data.
Matrix mIDVarNames
A matrix containing the names of nominal variables that associate X, Y coordinate pairs with a polygon.
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 the X coordinate data. This vector is used to create a DataObject and then that DataObject is used to create a PolygonPlot.
Matrix mY
A vector containing the Y coordinate data. This vector is added to the same DataObject as the mX vector.
Matrix mIDs
A matrix containing nominal data in which each row associates an X, Y coordinate pair with a polygon. This matrix is added to the same DataObject
as the mX vector.
This method creates a polygon plot.
x = { 0, 1, 1, 0, 1.5, 2, 1, 1.5, 2, 1 }; y = { 0, 0, 1, 1, 1, 2, 2, 0, -1, -1 }; id = { 1, 1, 1, 1, 2, 2, 2, 3, 3, 3 }; PolygonPlot.Create( "Shapes", x, y, id );