logo

img

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
How can I change the axes settings?
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful

You can change the settings of any axis by accessing each axis through the Axes collection.  For more options for the axes, please see Help | Surfer Automation Help | Objects | Axis Object.

Dim Axes As Object
Set Axes = ContourMapFrame.Axes

 

Dim XAxis As Object
'Assigns the bottom X axis to the variable named "XAxis", instead of 1 you could use "bottom axis"
Set XAxis = Axes(1)
XAxis.Title = "X Axis Title"

 

or

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