AutoVectorColorScale Object

The AutoVectorColorScale object controls settings for the vector plot color scale object.

Derived from: AutoColorScale object (Most methods and properties of AutoColorScale apply to this object.)

Properties

AutoInterval

AutoMax

AutoMin

Interval

Max

Min

Example

The following script demonstrates how the AutoVectorColorScale 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 vector plot

Set Graph = Plot.Shapes.AddVectorPlotGraph("C:\Program Files\Golden Software\Grapher\Samples\polar vector data.dat",1,2,3,4,grfPolarVectorARAM)

 

'Declares VectorPlot as object

Dim VectorPlot as object

 

'Set the vector plot to the VectorPlot object

Set VectorPlot = Graph.Plots.Item(1)

 

'Show the Color Scale bar

VectorPlot.ShowColorScale = True

 

'Set the color scale bar to the ColorScale object

Set ColorScale = VectorPlot.ColorScale

 

End Sub