ax.plot_surface(X, Y, Z, rstride=1, cstride=1000, color='w', shade=False,
    lw=0.5)
ax.set_zlim(0, 5)
ax.set_xlim(-51, 51)
ax.set_zlabel('Intensity')
ax.view_init(20, -120)
plt.show()
Python plotting 2d data on to 3d axes