AutoLevels Object

The AutoLevels object is used by contour maps to control the level properties of the map.

Properties

Count

Fill

Line

Value

Methods

AddLevel

DeleteLevel

InitLabels

InitLevels

Reset

Example

The following script demonstrates how the AutoLevels 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 data map

Set Graph = Plot.Shapes.AddContourDataMapGraph("C:\Program Files\Golden Software\Grapher\Samples\DEMOGRID.DAT",1,2,3)

 

'Sets the contour map to the ContourXYDataMap object

Set ContourXYDataMap = Graph.Plots.Item(1)

 

'Fill the contours

ContourXYDataMap.FillContours = True

 

'Sets the levels to the ContourLevels object

Set ContourLevels = ContourXYDataMap.Levels

End Sub