当前位置:网站首页>Error: AttributeError: module 'matplotlib' has no attribute 'figure'
Error: AttributeError: module 'matplotlib' has no attribute 'figure'
2022-08-01 04:51:00 【hi_1900】
Error: AttributeError: module 'matplotlib' has no attribute 'figure'
Before modification:
import matplotlib as pltplt.figure()plt.imshow(trainImages[10])plt.colorbar()plt.grid(False)
Modified to: import matplotlib.pyplot as plt
After modification:
import matplotlib.pyplot as pltplt.figure()plt.imshow(trainImages[10])plt.colorbar()plt.grid(False)
边栏推荐
- PMP 项目沟通管理
- Message queue MySQL table for storing message data
- PMP 80个输入输出总结
- Typescript22 - interface inheritance
- Advice given by experts with four years of development experience in Flutter tutorial
- [FPGA tutorial case 43] Image case 3 - image sobel edge extraction through verilog, auxiliary verification through MATLAB
- 7月编程排行榜来啦!这次有何新变化?
- LeetCode 387. 字符串中的第一个唯一字符
- 【愚公系列】2022年07月 .NET架构班 085-微服务专题 Abp vNext微服务网关
- FFmpeg 搭建本地屏幕录制环境
猜你喜欢
(2022牛客多校四)K-NIO‘s Sword(思维)
API Design Notes: The pimpl trick
PAT乙级 1002 写出这个数
Mysql基础篇(Mysql数据类型)
IJCAI2022 | Hybrid Probabilistic Reasoning with Algebraic and Logical Constraints
typescript25-类型断言
状态压缩dp
剑指 Offer 68 - II. 二叉树的最近公共祖先
The difference between scheduleWithFixedDelay and scheduleAtFixedRate
云服务器下载安装mongo数据库并远程连接详细图文版本(全)
随机推荐
LeetCode 387. 字符串中的第一个唯一字符
"ArchSummit: The cry of the times, technical people can hear"
开源许可证 GPL、BSD、MIT、Mozilla、Apache和LGPL的区别
(Codeforce 757) E. Bash Plays with Functions
Optional parameters typescript19 - object
typescript23-元组
y83.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十四)
typescript19-对象可选参数
(2022牛客多校四)K-NIO‘s Sword(思维)
Immutable
typescript25 - type assertion
PAT乙级 1001 害死人不偿命的(3n+1)猜想
Flutter Tutorial 02 Introduction to Flutter Desktop Program Development Tutorial Run hello world (tutorial includes source code)
mysql中解决存储过程表名通过变量传递的方法
报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
TIM登陆时提示00001(TIM00001)
FFmpeg 搭建本地屏幕录制环境
PAT乙级 1002 写出这个数
干货!如何使用仪表构造SRv6-TE性能测试环境
UE4 制作遇到的问题