graphing with matplotlib pyplot obtain the figure object figure pyplot figure(get the axes object for the graph axes figure gca(projection=' 'plot the surface surf axes plot_surface(x_valuesy_valuesz_valuescmap=colourmap coolwarmadd color bar which maps values to colors figure colorbar(surfadd labels to the graph pyplot title(" graph"axes set_ylabel(' values'fontsize= axes set_xlabel(' values'fontsize= axes set_zlabel(' values'fontsize= display the graph pyplot show(this program generates the following graph