AutoAxisTickLabels Object

The AutoAxisTickLabels object controls axis tick label properties. This object is accessed from the AutoAxis object TickLabels property.

Properties

Alignment

Application

AutoFirstLabelRow

AutoLastLabelRow

BetweenTicks

BreakAtSpaces

DateTime

FirstLabelRow

LabelDivisor

LabelWidth

LastLabelRow

LimitWidth

LogOneDigit

MaxLabelMode

MaxLabelValue

MajorAngle

MajorFont

MajorFormat

MajorFreq

MajorOffset

MajorOffsetX

MajorOffsetY

MajorOn

MajorSide

MinLabelMode

MinLabelValue

MinorAngle

MinorFont

MinorFormat

MinorFreq

MinorOffset

MinorOffsetX

MinorOffsetY

MinorOn

MinorSide

Mode

Orientation (polar angle axis)

Parent

ReadDataByRow

UseDateTimeFormat

Worksheet

WorksheetDataCol

WorksheetLabelCol

Example

The following script demonstrates how the AutoAxisTickLabels 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 TickLabels object

Dim TickLabels As Object

 

'Assigns the Tick labels to the TickLabels object

 Set TickLabels = Axis.TickLabels

 

End Sub