AutoSurfaceFuncMap Object

The AutoSurfaceFuncMap object controls 3D surface function map settings.

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

Properties

Base

ColorScale

Fill

FirstX

FirstZ

LastX

LastZ

Lighting

Mesh

NCols

NRows

Overlay

ShowColorScale

YFuncXZ

Methods

DisplayGridInfo

ExportGrid

Example

The following script demonstrates how the AutoSurfaceFuncMap 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

 

'Add a surface data map

Set Graph = Plot.Shapes.AddSurfaceFuncMapGraph("(pow(x,2) + pow(z,2)) * (sin(8*atan2(x,z)))",-25,25,-25,25)

 

'Declares SurfaceFunctionMap as object

Dim SurfaceFunctionMap as object

 

'Set the surface function map to the SurfaceFunctionMap object

Set SurfaceFunctionMap = Graph.Plots.Item(1)

 

End Sub