the console output from this program is given belowadding first subplot to position adding second subplot to position adding third subplot to position adding fourth subplot to position graphs three dimensional graph is used to plot the relationships between three sets of values (instead of the two used in the examples presented so far in this in three dimensional graph as well as the and axis there is also axis the following program creates simple graph using two sets of values generated using the numpy range function these are then converted into coordinate matrices using the numpy meshgrid(function the axis values are created using the numpy sin(function the graph surface is plotted using the plot_surface(function of the futures axes object this takes the xy and coordinates the function is also given colour map to use when rendering the surface (in this case the matplotlib cool to warm colour map is usedimport matplotlib pyplot as pyplot import matplotlib colour map from matplotlib import cm as colourmap required for psd projections from mpl_toolkits mplot import axes provide access to numpy functions import numpy as np make the data to be displayed x_values np arange(- y_values np arange(- generate coordinate matrices from coordinate vectors x_valuesy_values np meshgrid(x_valuesy_valuesgenerate values as sin of plus values z_values np sin(x_values y_values