AutoColorScale Object

The AutoColorScale object controls settings for the contour map color scale object.

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

Properties

Angle

AutoFirst

AutoLast

First

Font

Format

Last

Line

ShowLabels

Step

Title

Example

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

 

'Declares ContourXYDataMap as object

Dim ContourXYDataMap as object

 

'Set the Contour Map to the ContourXYDataMap object

Set ContourXYDataMap = Graph.Plots.Item(1)

 

'Fill Contours

ContourXYDataMap.FillContours = True

 

'Show ColorScale bar

ContourXYDataMap.ShowColorScale = True

 

'Declares the ColorScale as object

Dim ColorScale as object

 

'Sets the color scale bar to ColorScale object

Set ColorScale = ContourXYDataMap.ColorScale

 

End Sub