AutoContourFuncMap Object

The AutoContourFuncMap object controls 3D contour function map settings.

Derived from: AutoContourBaseMap object (All methods and properties of AutoContourBaseMap apply to this object.)

Properties

Equation

FirstX

FirstY

FirstZ

LastX

LastY

LastZ

NCols

NRows

Methods

ExportGrid

Example

The following script demonstrates how the AutoContourFuncMap object is used.

Sub Main

 

'Declares GrapherApp as an object

Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application object

'and assigns it to the variable named "GrapherApp"

Set GrapherApp = CreateObject("Grapher.Application")

 

'Makes Grapher visible

GrapherApp.Visible = True

 

'Creates a plot document in Grapher and assigns

'it to the variable named "Plot"

Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

'Declares Graph as an object

Dim Graph As Object

 

'Create Contour Func Map

Set Graph = Plot.Shapes.AddContourFuncMapGraph("(pow(x,2) + pow(y,2)) * (sin(8*atan2(x,y)))",True)

 

'Declares ContourXZFuncMap as object

Dim ContourXZFuncMap as object

 

'Set the Contour Map to the ContourXZFuncMap object

Set ContourXZFuncMap = Graph.Plots.Item(1)

 

End Sub