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

AngleEnd

AngleLimit

AngleStart

ArrowScale

AScale (standard)

AxisAngle

AutoMax (standard)

AutoMin (standard)

AxisBreak (standard)

AxisType

Descending

EndArrow

Grid (standard, polar, and ternary)

Height

Left

Length (standard and box-whisker)

Line

Link

Max (standard, ternary, stiff)

Min (standard, ternary, stiff)

Offset (polar)

Scale (standard)

ScaleBoxAxis (box plot axes only)

StartArrow

Ternary100 (ternary axes only)

TickLabels

Tickmarks

Title

Top

Units (polar)

Width

XPos (standard, box-whisker, and ternary)

YPos (standard, box-whisker, and ternary)

Methods

Delete

DuplicateAxis (standard)

MoveLabel

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