当前位置:网站首页>How to solve the image pop-up problem when pycharm calls Matplotlib to draw
How to solve the image pop-up problem when pycharm calls Matplotlib to draw
2022-07-01 23:37:00 【Yisu cloud】
PyCharm call matplotlib How to solve the problem of image pop-up when drawing
Today I'd like to share with you PyCharm call matplotlib How to solve the problem of image pop-up when drawing , Detailed content , Clear logic , I believe most people still know too much about this knowledge , So share this article for your reference , I hope you will gain something after reading this article , Now let's take a look .
Problem description
stay PyCharm Call in matplotlib When drawing an image , The default image will appear in Console output ( Pictured ), When drawing More images when , The console output mode is not intuitive .

Problem solving
Hope that in PyCharm Call in matplotlib When drawing an image , You can directly pop up Figure window .
Click on In the menu bar File→Settings→Python Scientific, The check box appears on the right , If checked, it will output ( Default ), If not checked, the image will pop up directly .


Additional attention plt.show()
Bloggers are starting to learn systematically Matplotlib when , Because it is in Jupyter Notebook Check the learning materials on , There is no ( There's no need (Jupyter Notebook The last line of command is output by default )) Input plt.show()

Careless bloggers just follow the gourd painting PyCharm Enter the same code in , After operation , No report error , But there has been no image output .
Based on this , Bloggers search for a lot about call matplotlib There is no solution to image pop-up when drawing , Operate in various ways to solve , A meal operation as fierce as a tiger , No effect .
Finally, I suddenly found , Han Han blogger forgot the last plt.show() The command …
import matplotlib.pyplot as pltimport matplotlib as mplfig, ax = plt.subplots() # Create one that contains a axes Of figureax.plot([1, 2, 3, 4], [1, 4, 2, 3]) # The plot plt.show()
That's all “PyCharm call matplotlib How to solve the problem of image pop-up when drawing ” All the content of this article , Thank you for reading ! I believe you will gain a lot after reading this article , Xiaobian will update different knowledge for you every day , If you want to learn more , Please pay attention to the Yisu cloud industry information channel .
边栏推荐
- TS初次使用、ts类型
- Distance measurement - Hamming distance
- MT manager test skiing Adventure
- 2021 RoboCom 世界机器人开发者大赛-高职组初赛
- Leetcode (34) -- find the first and last positions of elements in a sorted array
- Redis AOF log
- sql 优化
- [leetcode] length of the last word [58]
- y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
- Daily three questions 6.29
猜你喜欢

Redis RDB快照

神经网络物联网的未来趋势与发展

Notblank and notempty

from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘

PostgreSQL source code (57) why is the performance gap so large in hot update?

学成在线案例实战

Why is PHP called hypertext preprocessor

第六章 数据流建模

TS initial use, TS type

Matplotlib常用设置
随机推荐
ARP message header format and request flow
Leetcode (34) -- find the first and last positions of elements in a sorted array
物联网技术应用属于什么专业分类
2021 RoboCom 世界机器人开发者大赛-高职组初赛
Experience of practical learning of Silicon Valley products
ARP报文头部格式和请求流程
PyCharm调用matplotlib绘图时图像弹出问题怎么解决
JPA handwritten SQL, received with user-defined entity classes
问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
algolia 搜索需求,做的快自闭了...
Daily three questions 6.30 (2)
VIM color the catalogue
Development trend and future direction of neural network Internet of things
学成在线案例实战
每日三题 6.30
距离度量 —— 汉明距离(Hamming Distance)
[LeetCode] 最后一个单词的长度【58】
Redis RDB快照
Postgresql源码(57)HOT更新为什么性能差距那么大?
软件架构的本质