AddVectorPlot Method

The AddVectorPlot method adds a 2D vector plot to an existing 2D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoVectorPlot object.

Syntax

object.AddVectorPlot( worksheet, xCol, yCol, aCol, mCol, 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)
aCol Variant optional, default = 3 (column C)
mCol Variant optional, default = 4 (column D)
id Variant optional, plot name

 

Remarks

2D graphs can only be added to other 2D graphs.

Example

This example shows how to add a vector plot.

Graph.AddVectorPlot(GrapherApp.Path + "\samples\sample4.dat")

 

Used by: AutoGraph object

See Also

AddVectorPlotGraph