如果我在ax.plot_wireframe()之外定义函数,y轴上的值在我的绘图中不会改变。这是我真正的功能问题。import pandasfrom matplotlib import cmfrom mpl_toolkits.mplot3dimport Axes3D # <--- This is important for 3d plotting
a = numpy.linspace(
我已经导入了所有必需的库,但是当我运行它时,"MatplotlibDeprecationWarning: Axes3D(图)自3.4开始不推荐使用它自己。auto_add_to_figure的默认值将在mpl3.5中变为False,而True值将不再在3.6中工作。这与其他轴类是一致的。“错误显示。这是我的密码:import matplotlib.pyplot as plt
from mpl_toolkits.mplot
我想从数组x,y,z创建一个3d曲面图,其中len(x)和len(z) = 250,len(y)= 7 import matplotlib.pyplot as pltfrom matplotlib import cm
ax = fig.gca(projection) 产生以下错误: ValueError: shape mismatch: objects cannot be broadcast to a