AutoAxis Object
The standard AutoAxis object used in most graphs, such as line/scatter graphs. Box-whisker, polar, and ternary diagram axes do not use all of the methods and properties of the standard axis. When a method or property is not used by all axis types, the axes used are listed in parentheses.
Derived from: AutoShape object (All methods and properties of AutoShape apply to this object.)
Properties
AScale (standard)
AutoMax (standard)
AutoMin (standard)
AxisBreak (standard)
Grid (standard, polar, and ternary)
Length (standard and box-whisker)
Max (standard, ternary, stiff)
Min (standard, ternary, stiff)
Offset (polar)
Scale (standard)
Ternary100 (ternary axes only)
Units (polar)
XPos (standard, box-whisker, and ternary)
YPos (standard, box-whisker, and ternary)
Methods
DuplicateAxis (standard)
PositionAxis (standard)
Example
This example shows how to access an X axis.
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
'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 Shapes as an object
Dim Shapes As Object
'Assigns the AutoShapes collection to the
'variable named "Shapes"
Set Shapes = Plot.Shapes
'Declares Graph as an object
Dim Graph As Object
'Creates a graph and assigns it to the variable
'named "Graph"
Set Graph = 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)
End Sub