您的位置: 首页 > 文章 > Module 'matplotlib' has no 'contourf' member 使用Python导入matplotlib模块报错 Module 'matplotlib' has no 'contourf' member 使用Python导入matplotlib模块报错 分类: 文章 • 2023-04-05 16:04:47 错误提示 使用Python编译画图时提示Module 'matplotlib' has no 'contourf' member 原因分析 导入matplotlib模块错误matplotlib为程序宏包matplotlib.pyplot为其模块contourf为此模块函数 此函数功能为绘制颜色填充的等高线 解决办法 把导入包改为import matplotlib.pyplot as plt 错误截图 References matplotlib 等高线的绘制 —— plt.contour 与 plt.contourf Matplotlib绘图 - 动画,三维绘图,等高线图 matplotlib.pyplot.contourf