fig, ax = plt.subplots()
img = ax.contourf(v, np.linspace(1,3,11), cmap=plt.cm.rainbow)
fig.colorbar(img, orientation='horizontal')