def draw_loss(X,Y,Z):
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
# X,Y,Z= axes3d.get_test_data(0.05)####
# Grab some test data.
surf = ax.plot_surface(X,Y,Z, cmap=cm.coolwarm,
linewidth=0, antialiased=False)
# Customize the z axis.
#ax.set_zlim(-1.01,1.01)
ax.zaxis.set_major_locator(LinearLocator(10))
ax.zaxis.set_major_formatter(FormatStrFormatter('%.02f'))
# Add a color bar which maps values to colors.
fig.colorbar(surf, shrink=0.5, aspect=5)
plt.show()