AutoAxisTickMarks Object

The AutoAxisTickMarks object controls axis tick mark settings. This object is accessed from the AutoAxis object TickMarks property.

Properties

Application

DTMinorSpacing

DTMinorUnits

DTSpacing

DTUnits

EnableDTMinorSpacing

EnableDTSpacing

FirstTickMode

FirstTickValue

LastTickMode

LastTickValue

MajorArrowScale

MajorEndArrow

MajorLength

MajorLine

MajorLineAuto

MajorSide

MajorSpacing

MajorSpacingAuto

MajorStartArrow

MarkDirection

MinorArrowScale

MinorDivision

MInorEndArrow

MinorLength

MinorLine

MinorLineAuto

MinorSide

MinorStartArrow

Parent

StartAt

StartAtAuto

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 TickMarks object

Dim TickMarks As Object

 

'Assigns the Tick marks to the TickMarks object

 Set TickMarks = Axis.TickMarks

 

End Sub