Surface function drawing programme.