AutoAxes Collection

The AutoAxes collection contains all axes for the graph. The individual members of the AutoAxes collection are contained in the AutoAxis object. AutoAxes allows access to all axes used by an AutoGraph object.

Properties

Application

Count

Parent

Method

Item

Example

The following script demonstrates how the AutoAxes collection is used.

SubMain

 

 '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

 

 'Declares Plot as an object

  Dim Plot As Object

 

 '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

 

 'Creates a graph and assigns it to the variable named "Graph"

  Set Graph = Plot.Shapes.AddLinePlotGraph(GrapherApp.Path+"\Samples\bar chart orientations.dat")

 

'Declares Axes as an object

  Dim Axes As Object

 

 'Assigns the AutoAxes collection to the variable

 'named "Axes"

  Set Axes = Graph.Axes

 

End Sub