z = x[:, (np.newaxis)] + y ** 2
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='3d')
for xval, zrow in zip(x, z):
    ax.plot(xval * np.ones_like(y), y, zrow, color='black')
plt.show()
3D plots using maplot3d from matplotlib-