y = np.arange(0, 1, 0.2)
xs, ys = np.meshgrid(x, y)
zs = xs ** 2 + ys ** 2
fig = plt.figure()
ax = Axes3D(fig)
ax.plot_surface(xs, ys, zs, rstride=1, cstride=1, cmap='hot')
plt.show()
3D plot with an 2D array python matplotlib