Python——根据散点数据绘制三维曲面图( meshgrid函数以及Axes3D [plot_surface] )
1、初始散点数据处理成xy网格数据importnumpyasnpx=np.arange(-2,2,0.025)y=np.arange(-2,2,0.025)x,y=np.meshgrid(x,y)网格处理过程:#x和Y均为:array([-2.,-1.5,-1.,-0.5,0.,0.5,1.,1.5])#meshgrid函数后##xarray([[-2.,-1.5,-1.,-0.5,0.,0.5,