matplotlib中文显示坐标--修改matplotlibrc文件(for windows系统)
2011-03-07 16:06
537 查看
1,找到
#font.family : sans-serif
去掉注释
2,找到
#font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
修改为
font.sans-serif : Microsoft YaHei ,Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
即去掉注释,并在配置值中添加 Microsoft YaHei ,
3,在windows下搜索msyh.ttf,即微软的雅黑字体,
并将msyh.ttfcopy到python按照目录下的
x:/install_dir/Lib/site-packages/matplotlib/mpl-data/fonts/ttf
目录
其中x:/install_dir是python的安装目录
#font.family : sans-serif
去掉注释
2,找到
#font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
修改为
font.sans-serif : Microsoft YaHei ,Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
即去掉注释,并在配置值中添加 Microsoft YaHei ,
3,在windows下搜索msyh.ttf,即微软的雅黑字体,
并将msyh.ttfcopy到python按照目录下的
x:/install_dir/Lib/site-packages/matplotlib/mpl-data/fonts/ttf
目录
其中x:/install_dir是python的安装目录
相关文章推荐
- Matplotlib 图例中文显示(大小修改)
- 修改配置文件matplotlibrc,让Matplotlib显示中文
- Python 3下使用Matplotlib工具画图,中文显示乱码的问题解决(修改配置文件)
- matplotlib中文坐标轴和标题显示
- Linux环境下修改python matplotlib显示中文乱码方格
- python matplotlib 中文显示参数设置
- Python Matplotlib 中文不正常显示解决记录
- python matplotlib 无法显示中文
- matplotlib-在图表中显示中文
- Matplotlib使用笔记----中文字体显示
- matplotlib pyplot 中文显示问题
- python 使用matplotlib绘图中文显示成框框解决办法
- Matplotlib中文显示的问题
- python matplotlib plot 数据中的中文无法正常显示的解决办法
- matplotlib中画图显示中文,但保存为图片后中文乱码
- 【Matplotlib】线设置,坐标显示范围
- matplotlib 纵坐标轴显示数据值的实例
- python matplotlib中文显示问题
- Deepin中Python库matplotlib显示中文
- Ubuntu下用matplotlib作图时显示中文