AddBoxPlot2 Method
The AddBoxPlot2 method adds a vertical or horizontal box-whisker plot to an existing 2D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoBoxPlot object.
Syntax
object.AddBoxPlot2( worksheet, firstCol, lastCol, regAxis, horz, id )
Parameter | Type | Description |
worksheet | String | required, the full path and file name of the data |
firstCol | Variant | optional, default = 1 (column A) |
lastCol | Variant | optional, default = 2 (column B) |
regAxis | String | optional, axis name, specify plot axis |
horz | Variant | optional, default = False, True to create horizontal box-whisker plot |
id | Variant | optional, plot name |
Remarks
2D graphs can only be added to other 2D graphs.
If the regAxis parameter is not specified, the topmost (last created) normal axis is used for the non-box plot axis. If an axis does not exist, one is created.
Example
This example shows how to add a box-whisker plot with the values corresponding to the second Y axis.
Graph1.AddBoxPlot2(GrapherApp.Path + "\samples\box plot.dat",1,6, "Y Axis 2", False)
Used by: AutoGraph object