How can I change the contour label properties via Surfer automation?

To change the contour label properties, use the LabelFont property of the ContourMap object. For more options, please see the ContourLayer Object page in the Help.

For example:

ContourLayer.LabelTolerance = 8
ContourLayer.LabelLabelDist = 0.5
ContourLayer.LabelEdgeDist = 0.75
ContourLayer.LabelFormat.NumDigits = 2
ContourLayer.OrientLabelsUphill = True
ContourLayer.LabelFont.Face = "Arial"
ContourLayer.LabelFont.Size = 8


See also the attached script ContourMap.bas, which can also be found in the \Samples\Scripts\ folder in the Surfer installation directory.


See here for instructions on how to edit the properties of contour map labels via the user interface in Surfer.


Updated November 1, 2018

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.