If you could provide more context or specify the software/tool you're working with, I could give a more tailored response.
# Plot the surface ax.plot_surface(X, Y, Z, cmap='viridis') slope3d