AutoAxisLink Object

The AutoAxisLink object controls axis linking properties. This object is accessed from the AutoAxis object Link property.

Derived from: AutoShape Object (All methods and properties of AutoShape apply to this object.)

Properties

Length

LengthScale

Limits

LimitsEquation

Scale

Spacing

TickPos

ToAxis

xPos

XPosOffset

XPosOption

yPos

YPosOffset

YPosOption

Example

The following script demonstrates how the AutoAxisLink 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\bubble.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 AxisLink object

Dim AxisLink As Object

 

'Assigns the Axis linking to the AxisLink object

Set AxisLink = Axis.Link

 

End Sub