当前位置:网站首页>报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
2022-08-01 04:36:00 【hi_1900】
报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
修改前:
import matplotlib as plt
plt.figure()
plt.imshow(trainImages[10])
plt.colorbar()
plt.grid(False)
修改为:import matplotlib.pyplot as plt
修改后:
import matplotlib.pyplot as plt
plt.figure()
plt.imshow(trainImages[10])
plt.colorbar()
plt.grid(False)
边栏推荐
- 25. Have you been asked these three common interview questions?
- Message Queuing Message Storage Design (Architecture Camp Module 8 Jobs)
- 【愚公系列】2022年07月 .NET架构班 085-微服务专题 Abp vNext微服务网关
- Weekly Summary (*67): Why not dare to express an opinion
- lambda
- Message queue design based on mysql
- Dart named parameter syntax
- RSA主要攻击方法
- Basic Theoretical Knowledge of Software Testing - Use Cases
- Progressive Reconstruction of Visual Structure for Image Inpainting 论文笔记
猜你喜欢
scheduleWithFixedDelay和scheduleAtFixedRate的区别
The maximum quantity leetcode6133. Grouping (medium)
typescript24-类型推论
button remove black frame
律师解读 | 枪炮还是玫瑰?从大厂之争谈元宇宙互操作性
Invalid classes inferred from unique values of `y`. Expected: [0 1 2], got [1 2 3]
Difference Between Compiled and Interpreted Languages
win10 fixed local IP
Unknown Bounded Array
【愚公系列】2022年07月 Go教学课程 025-递归函数
随机推荐
Step by step hand tearing carousel Figure 3 (nanny level tutorial)
typescript27-枚举类型呢
【愚公系列】2022年07月 Go教学课程 023-Go容器之列表
罗技鼠标体验记录
基于STM32设计的UNO卡牌游戏(双人、多人对战)
黑客到底可以厉害到什么程度?
Article summary: the basic model of VPN and business types
认真对待每一个时刻
李迟2022年7月工作生活总结
Message queue design based on mysql
在互联网时代,有诸多「互联网+」模式的诞生
Unknown Bounded Array
25. 这三道常见的面试题,你有被问过吗?
The 16th day of the special assault version of the sword offer
2. # code comments
智芯传感输液泵压力传感器 为精准智能控制注入科技“强心剂”
Input input box cursor automatically jumps to the last bug after the previous input
UE4 从鼠标位置射出射线检测
Mysql中的数据类型和运算符
基于Arduino制作非接触式测温仪