#!/usr/bin/env python"""This generates the graph of the function f(x, y) = sin(sqrt(x^2 + y^2))."""# Author: Ika. 2015-08-08frommatplotlibimportcmfrommpl_toolkits.mplot3dimportAxes3Dimportmatplotlib.pyplotaspltimportnumpyasnpfig=plt.figure()ax=fig.gca(projection='3d')X=np.arange(-5,5,0.25)Y=np.arange(-5,5,0.25)X,Y=np.meshgrid(X,Y)R=np.sqrt(X*X+Y*Y)Z=np.sin(R)surf=ax.plot_surface(X,Y,Z,rstride=1,cstride=1,cmap=cm.coolwarm)plt.savefig("matplotlib_3d.svg")