当前位置:网站首页>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 .
边栏推荐
猜你喜欢

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

Zero foundation tutorial of Internet of things development

ARP报文头部格式和请求流程

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

De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'

Practical application and extension of plain framework

物联网应用技术专业是属于什么类

kubernetes资源对象介绍及常用命令(三)

Three development trends of enterprise application from the perspective of the third technological revolution

Paramètres communs de matplotlib
随机推荐
Postgresql随手记(10)动态执行EXECUTING语法解析过程
MySQL Replication中并行复制怎么实现
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
Matplotlib常用图表
[swoole Series 1] what will you learn in the world of swoole?
BlocProvider为什么感觉和Provider很相似?
TS initial use, TS type
云信小课堂 | IM及音视频中常见的认知误区
notBlank 和 notEmpty
Why is PHP called hypertext preprocessor
Future trend and development of neural network Internet of things
dat. GUI
2021 robocom world robot developer competition - semi finals of higher vocational group
为什么PHP叫超文本预处理器
Create Ca and issue certificate through go language
vs2015 AdminDeployment.xml
上海炒股开户选择手机办理安全吗?
问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板