code to generate SNSC figure on surface