网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

python:matplotlib问题

时间:2024-10-13 23:02:12

当导入包matplotlib,会出现module 'matplotlib' has no attribute 'subplots'错误提醒

工具/原料

python

错误描述

1、在深度学习数据可视化过程中,引入了Python绘图模块Matplotlibimport matplotlib as plt使用过程中调吹涡皋陕用 fig = plt.figure(),报错显示:AttributeError: module ‘matplotlib’ has no attribute 'figure’

解决错误

1、通过stackoveflow上的解决办法修改为:import matplotlib.pyplot as plt,错误解决

© 2025 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com