AutoAxisTitle Object
The AutoAxisTitle object controls the axis title settings. This object is accessed from the AutoAxis object Title property.
Properties
Example
The following script demonstrates how the AutoAxisTickMarks 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
'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
'Declares Axis as an object
Dim Axis As Object
'Assigns the X axis to the variable named "Axis"
Set Axis = Axes(1)
'Declares the AxisTitle object
Dim AxisTitle As Object
'Assigns the axis title to the AxisTitle object
Set AxisTitle = Axis.Title
End Sub