How can I do a surface plot in Python? I have a function which can be defined:
def f(x): v = 0 for i in range(len(x)): v += x[i]**2 return v/len(x