当前位置:网站首页>报错: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)
边栏推荐
- 怀念故乡的面条
- Visual Studio提供的 Command Prompt 到底有啥用
- Software Testing Interview (3)
- 【愚公系列】2022年07月 Go教学课程 025-递归函数
- 产品经理访谈 | 第五代验证码的创新与背景
- What is dynamic programming and what is the knapsack problem
- Li Chi's work and life summary in July 2022
- 7 行代码搞崩溃 B 站,原因令人唏嘘!
- Optional parameters typescript19 - object
- typescript27-枚举类型呢
猜你喜欢
随机推荐
使用ts-node报错
/etc/fstab
故乡的素描画
typescript26-字面量类型
MySQL3
The 16th day of the special assault version of the sword offer
让你的 Lottie 支持文字区域内自动换行
[FPGA tutorial case 43] Image case 3 - image sobel edge extraction through verilog, auxiliary verification through MATLAB
Message Queuing Message Storage Design (Architecture Camp Module 8 Jobs)
win10 fixed local IP
Mysql中的数据类型和运算符
How to promote new products online?
7月编程排行榜来啦!这次有何新变化?
Character encoding and floating point calculation precision loss problem
出现Command ‘vim‘ is available in the following places,vim: command not found等解决方法
在沈自所的半年总结
【kali-信息收集】枚举——DNS枚举:DNSenum、fierce
【堆】小红的数组
Software Testing Interview (3)
25. Have you been asked these three common interview questions?









