logo

img

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
Can I load a CLR file or specify a preset for a contour map via automation?
User Opinions
0% thumbs up 100% thumbs down

How would you rate this answer?
Helpful
Not helpful
Surfer 10 can load a CLR file for a contour map. All the CLR files for all the presets are saved to the installation file under the ColorScales folder. So you could use:

      'Load a CLR file for the contour map and applies the changes to the map
            ContourMap.FillForegroundColorMap.LoadFile(SurferApp.Path+"\ColorScales\Rainbow.clr")
      'Applies the above fill settings to the map
            ContourMap.ApplyFillToLevels(1, 1, 0)

Surfer 8 and Surfer 9 do not have the ability to load a CLR file or specify a preset colormap to a contour map in a script.

Refer the contourfill.bas script on our web site for an example of how to set the fills grading from blue to white.

Surfer scripts: http://www.goldensoftware.com/support/free-scripts.shtml?jwts_tab=0
 
  'Set the colors to be gradational from blue to white
  Set Levels2 = MapFrame2.Overlays(1).Levels
  m = Levels2.Count
  ColorInc2 = 255.0 / (m-1)
  For j=1 To m
    ColorInc2 = 255.0 * (j-1) / (m-1)
    Levels2(j).Fill.ForeColor = RGB(ColorInc2,ColorInc2,255)
  Next j

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