logo

img

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
How can I remove the tick marks from the axes?
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful

Set the MajorTickType and/or MinorTickType to srfTickNone to not have the tick marks shown on the axis.

Sub Main
Set SurferApp = CreateObject("Surfer.Application")
SurferApp.Documents.Add(srfDocPlot)
SurferApp.Visible = True

Infile = SurferApp.Path + "\samples\demogrid.grd"
Dim Doc As Object
Set Doc = SurferApp.Documents.Add

Dim MapFrame As Object
Set MapFrame = Doc.Shapes.AddContourMap(GridFileName:=Infile)

Dim ContourMap As Object
Set ContourMap = MapFrame.Overlays(1)

Dim Axes As Object
Set Axes = MapFrame.Axes
Dim Axis As Object

For Each Axis In Axes
Axis.ShowLabels = False
Axis.MajorTickType = srfTickNone
Axis.MinorTickType = srfTickNone
Next Axis

End

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.
Products