AddXYZVectorPlot Method
The AddXYZVectorPlot method adds a 3D XYZ vector plot to an existing 3D graph, equivalent to Graph Tools | Add to Graph | Plot. Returns an Auto3DXYZVectorPlot object.
Syntax
object.AddXYZVectorPlot( worksheet, type, xCol, yCol, zCol, x2Col, y2Col, z2Col, xAxis, yAxis, zAxis, id )
Parameter | Type | Description |
worksheet | String | required, data's full path and file name |
type | Variant | optional, grfVectorType, default = grfVectorXYZXYZ |
xCol | Variant | optional, X column, default = 1 (column A) |
yCol | Variant | optional, Y column, default = 2 (column B) |
zCol | Variant | optional, Z column, default = 3 (column C) |
x2Col | Variant | optional, X2 or dx column, default = 4 (column D) |
y2Col | Variant | optional, Y2 or dy column, default = 5 (column E) |
z2Col | Variant | optional, Z2 or dz column, default = 6 (column F) |
xAxis | Variant | optional, ID of X axis to use for plot (default = use 1st X axis in graph) |
yAxis | Variant | optional, ID of Y axis to use for plot (default = use 1st Y axis in graph) |
zAxis | Variant | optional, ID of Z axis to use for plot (default = use 1st Z axis in graph) |
id | Variant | optional, plot name |
Remarks
3D graphs can only be added to other 3D graphs.
Example
This example shows how to add a 3D XYZ vector plot to an existing 3D graph.
Dim Graph2 As Object
Set Graph2 = Shapes.AddXYZPlotGraph(GrapherApp.Path + "\samples\bar chart orientations.dat")
Graph2.AddXYZVectorPlot(GrapherApp.Path + "\samples\box plot.dat")
Used by: AutoGraph object