UserWarning: Glyph 20809 (\N{CJK UNIFIED IDEOGRAPH-5149}) missing from current font解决方法
如果只需要改图例的话,在plt前设置显示中文字体即可
font1 = {'family' : 'Times New Roman',
'weight' : 'normal',
'size' : 16,
}from pylab import mpl# 设置中文显示字体
mpl.rcParams["font.sans-serif"] = ["SimHei"]plt.figure(figsize=(5,5))
plt.xlabel('lambda/nm',font1)
plt.plot(WL,LED0,'-*',color='red',label='灯1')
plt.plot(WL,LED,'-.',color='blue',label='灯2')
plt.legend()
plt.show()
如果需要图名也是中文的话,改成'family' : 'Microsoft YaHei'。
font1 = {'family' : 'Microsoft YaHei',
'weight' : 'normal',
'size' : 16,
}
UserWarning: Glyph 20809 (\N{CJK UNIFIED IDEOGRAPH-5149}) missing from current font解决方法相关推荐
- python出现中文乱码 RuntimeWarning: Glyph 24180 missing from current font.解决方法
文章目录 遇到的问题 解决方法 参考 解决方法:在画图前添加这样一句代码 plt.rcParams['font.sans-serif'] = ['SimHei'] 遇到的问题 环境:win10,编辑器 ...
- UserWarning: Glyph 30005 (\N{CJK UNIFIED IDEOGRAPH-7535}) missing from current font解决方式方法
一.使用数据 使用以下数据绘图 import pandas as pd import numpy as np from matplotlib import pyplot as plt df = pd. ...
- Glyph 26426 missing from current font.解决matplotlib画图中文字体乱码问题
1. 问题复现 环境:Ipython 3.8 import matplotlib.pyplot as plt import pandas as pddata = pd.read_csv('/Users ...
- glyph 24230 missing from current font.解决-matplotlib绘图踩坑
问题描述 用matplotlib绘图的时候,title是中文 报错如下: D:\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg. ...
- Matplotlib绘图py:151: UserWarning: Glyph 27773 missing from current font.
Matplotlib绘图--中文乱码问题 在jupyter notebook 中,使用 Matplotlib 绘图过程中涉及了中文字符,出现警告 E:\Anaconda\lib\site-packag ...
- RuntimeWarning:Glyph 21435 missing from current font.
RuntimeWarning:Glyph 21435 missing from current font. 目录 RuntimeWarning:Glyph 21435 missing from cur ...
- UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. plt.show()
在使用matplotlib的pyplot图表绘制工具进行表格以及数据函数的可视化,出现以下警告: UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing fr ...
- 已解决UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. fig.canvas.print_figure(byt
已解决UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. fig.canvas.print_figure(bytes ...
- 错误RuntimeWarning: Glyph xxxxx missing from current font的产生原因解析,检测当前字体是否包含某字符
RuntimeWarning: Glyph xxxx missing from current font是matplotlib的经典错误. 原因大家都清楚:字体不匹配,显示不了对应的字符. 现象就是: ...
最新文章
- 小米4c怎么添加语言怎么设置在哪里,小米4c路由器设置教程
- 关于Mysql5.6半同步主从复制的开启方法【转】
- bp神经网络应用实例_人工智能BP神经网络学习神器——AISPACE
- C语言 实现一个函数判断year是不是润年
- c++新特性11 (10)shared_ptr六”构造函数unique_ptr参数“
- 9b9t服务器显示连接超时,Fabric-sdk-go实例化链码连接7053端口等待超时
- 【和我一起学习Unity3D】Unity3D的坐标控制
- 后端工程师面试BAT,被问到了前端?就倒下了?【VUE面试20连问】
- 电脑知识:磁盘分区相关知识笔记!
- 摇篮善良:仅添加包装用于战争
- 修改Win10 alt+F4默认选项为关机
- c语言i++和++i程序_使用C ++程序修改链接列表的内容
- Linux nohup实现后台运行程序及查看(nohup与)
- cms核心功能_如何根据这些重要功能选择合适的CMS
- php 人像识别,基于OpenCV的PHP图像人脸识别技术
- HDOJ--1269--迷宫城堡
- windows2003安装网络打印机的问题(原创,转载请注明)
- c语言 sendto函数,在sendto()函数中发送一个结构 - C语言
- python 设置输入法为英文_python 怎么转化输入法
- RFC 文档(1-500)
热门文章
- CommonAPI使用例子-HelloWorld
- java ca认证_java编程方式生成CA证书
- MaratonIME plays Cîrokime
- qcon_从QCon San Francisco 2008中学到的主要知识点和教训
- python将视频像素抓取替换导出mosaic效果的文本视频
- 470计算机毕业设计
- 2020vue运行出现ESLint is disabled since its execution has not been approved or denied yet. Use the ligh
- excel数据库_最新技术让excel秒变web数据库
- java综合知识点总结-必背
- python+twilio实现打电话和发短信功能