Set the data limits and scaling for a colormap via Surfer automation

To set the data limits for the color map (as seen in the Colormap dialog) via a script, use the .SetDataLimits parameter of the ColorMap object. This allows you to set the min/max data limits for the contour fill colors through the .FillForegroundColorMap property of the ContourMap object.

 

For example:

ContourLayer.LevelMethod = SrfConLevelMethodLogarithmic
ContourLayer.SetLogarithmicLevels(Min:=0.25, Max:=5, LevelsInDecade:=43)
ContourLayer.FillContours = True
ContourLayer.FillForegroundColorMap.LoadPreset("Rainbow")
ContourLayer.ShowColorScale=True
ContourLayer.FillForegroundColorMap.SetDataLimits(0.25, 5)

 

Updated November 2021

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

Comments

0 comments

Please sign in to leave a comment.