Module 'matplotlib' has no 'contourf' member 使用Python导入matplotlib模块报错

错误提示

使用Python编译画图时提示Module 'matplotlib' has no 'contourf' member

原因分析

导入matplotlib模块错误
matplotlib为程序宏包
matplotlib.pyplot为其模块
contourf为此模块函数
此函数功能为绘制颜色填充的等高线

解决办法

把导入包改为import matplotlib.pyplot as plt
Module 'matplotlib' has no 'contourf' member 使用Python导入matplotlib模块报错

错误截图Module 'matplotlib' has no 'contourf' member 使用Python导入matplotlib模块报错

References