Change the contour map level method via Surfer automation

You can set the level method to Simple, Logarithmic, or Advanced in Surfer using the .LevelMethod property of the ContourLayer object. This property was first included in Surfer 13 and is not available in previous versions of Surfer.

 

Example:

Set MapFrame = Plot.Shapes.AddContourMap(GridFileName:=SurferApp.Path + "\samples\demogrid.grd")
Dim ContourLayer As Object
Set ContourLayer = MapFrame.Overlays(1)
ContourLayer.LevelMethod = SrfConLevelMethodSimple

 

The sample scripts ContourMap_Simple.bas, ContourMap_Advanced.bas, and ContourMap_Logarithmic.bas found in C:\Program Files\Golden Software\Surfer\Samples\Scripts may also be of use.

 

Updated November 2021

 

 

Was this article helpful?
0 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.