# encoding: utf-8 import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits import mplot3d fig=plt.figure() x_line=np.linspace(-6,6,30) y_line=np.linspace(-6,6,30) X,Y=np.meshgrid(x_line,y_line) Z=np.sin(np.sqrt(X**2+Y**2)) ax=plt.axes(projection='3d') ax.contour3D(X,Y,Z,50,cmap='binary') plt.show()
python绘制等高线图
最新推荐文章于 2024-03-12 13:23:54 发布