AddSurfaceDataMap Method

The AddSurfaceDataMap method adds a 3D surface data map to an existing 3D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoSurfaceDataMap object.

Syntax

object.AddSurfaceDataMap( worksheet, xCol, yCol, zCol, xAxis, yAxis, zAxis, 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)
xAxis Variant optional, ID of X axis to use for plot (default = uses first X axis in graph)
yAxis Variant optional, ID of Y axis to use for plot (default = uses first Y axis in graph)
zAxis Variant optional, ID of Z axis to use for plot (default = uses first 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 surface data map.

Graph.AddSurfaceDataMap(GrapherApp.Path + "\samples\demo­grid.dat")

 

Used by: AutoGraph object

See Also

AddSurfaceDataMapGraph