if mlab.isvector(x) or mlab.isvector(y):
        x, y = np.meshgrid(x, y)