cgi script to generate a slope field in svg format