AddXYZPlot Method

The AddXYZPlot method adds a 3D XYZ line/scatter plot to an existing 3D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoXYZPlot object.

Syntax

object.AddXYZPlot( worksheet, xCol, yCol, zCol, xAxis, yAxis, id )

 

Parameter Type Description
worksheet String required, data's full path and file name
xCol Variant optional, default = 1 (column A)
yCol Variant optional, default = 2 (column B)
zCol Variant optional, default = 3 (column C)
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 line/scatter plot to an existing 3D graph.

Dim Graph2 As Object

Set Graph2 = Shapes.Add3DLinePlotGraph(GrapherApp.Path + "\samples\bar chart orientations.dat")

Graph2.AddXYZPlot(GrapherApp.Path + "\samples\bar chart orientations.dat")

 

Used by: AutoGraph object

See Also

AddXYZPlotGraph