| Knowledgebase Home | Contact |
| Can I load a CLR file or specify a preset for a contour map via automation? | |||||||||
'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. |