解决matplotlib.pyplot.show()函数不起作用的问题
2017-08-10 14:47
1141 查看
打开文件搜索matplotlibrc
打开这个文件,搜索backend关键字
# The default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo
# MacOSX Qt4Agg Qt5Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG
# Template.
# You can also deploy your own backend outside of matplotlib by
# referring to the module name (which must be in the PYTHONPATH) as
# ‘module://my_backend’.
backend : TkAgg(此处原来为agg,agg不具有画图功能,所以我们将此处改为TkAgg 不过TkAgg需要python支持tkinter模块 import tkinter试一下,如果不行,参考我以前的博客安装 tkinter模块
打开这个文件,搜索backend关键字
# The default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo
# MacOSX Qt4Agg Qt5Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG
# Template.
# You can also deploy your own backend outside of matplotlib by
# referring to the module name (which must be in the PYTHONPATH) as
# ‘module://my_backend’.
backend : TkAgg(此处原来为agg,agg不具有画图功能,所以我们将此处改为TkAgg 不过TkAgg需要python支持tkinter模块 import tkinter试一下,如果不行,参考我以前的博客安装 tkinter模块
相关文章推荐
- 【Python开发】matplotlib绘图不显示问题解决plt.show()
- 【Python开发】matplotlib绘图不显示问题解决plt.show()
- 不同版本中Python matplotlib.pyplot.draw()界面绘制异常问题的解决
- 关于import matplotlib.pyplot as plt报错问题的解决方法
- 解决pycharm中matplotlib、plt.show()画图时报错“qt platform问题”
- matplotlib绘图不显示问题解决plt.show()
- CenOS6.5上matplotlib的show函数不能显示图片的问题
- python 1: 解决linux系统下python中的matplotlib模块内的pyplot输出图片不能显示中文的问题
- 使用matplotlib时pyplot.show()不显示图像的问题
- 解决matplotlib绘图中显示中文乱码的问题
- 解决python27 matplotlib 中文不显示问题
- matplotlib使用show方法后不能显示图像的问题
- Mac 系统下 解决python matplot画图中文乱码问题和plot.show()无响应问题
- 解决python中matplotlib绘图中文显示问题
- python2.7之matplotlib中plt.show()不显示图的解决办法
- 图像显示—关于matplotlib.pyplot.imshow()函数
- 一次解决Matplotlib绘图中的中文乱码问题
- Mac系统彻底解决matplotlib中文显示乱码的问题
- 解决python27 matplotlib 中文不显示问题
- 怎么解决numpy和matplotlib无法安装问题