Python-anaconda-Spyder使用matplotlib画图无法显示报错解决:Figures now render in the Plots pane by default. To mak

晚上在用anaconda的Spyder IDE,用 matplotlib 画图时不会显示图片在iPython终端中,报错如下:

Figures now render in the Plots pane by default. To make them also appear inline in the Console, uncheck "Mute Inline Plotting" under the Plots pane options menu. 

网上查找资料后发现问题所在:python - Spyder Plot Inline - Stack Overflow

说的是最新版本的Spyder 4.0默认显示图片在右上角,不显示在终端中,如图所示:

在这里插入图片描述

想要弹出窗口显示matplotlib画的图片,修改设置:

Tools > Preferences > iPython console > Graphics > Graphics backend > Automatic

重启IDE,现在画图就会弹出窗口显示了。

评论 23
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值