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
No users have voted.

How would you rate this answer?
Helpful
Not helpful

Surfer does not have the ability to load a CLR file or specify a preset colormap to a contour map in a script. To add your vote to this request on the suggestion file, please contact surfersupport@goldensoftware.com.


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

 

Surfer 9 scripts: http://www.goldensoftware.com/scripts-S.shtml#S-9


Surfer 8 scripts: http://www.goldensoftware.com/scripts-S.shtml#S-8

 

******


  '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.
Post Comment for "Can I load a CLR file or specify a preset for a contour map via automation?"
To post a comment for this question, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
Continue
Powered by ActiveKB Knowledgebase Software

Home * Products * Gallery * Support * About Us * Register * Order * Demos