![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
zyc53
随遇随记。
展开
-
matplotlib读取图片方法罗列
matplotlib读取图片方法罗列img = imread('./z/y/imgs/K-line.png')plt.imshow(img)plt.show()知识参考1. matplotlib官网2.python 读取并显示图片的各种方式(Pillow、matplotlib、opencv)...原创 2020-03-09 20:58:34 · 2805 阅读 · 0 评论 -
matplotlib设置显示中文
mac:由于Mac系统自带有中文字库,Arial Unicode MS即为其中一种。不需要安装字库,不需要修改配置文件。import matplotlib.pyplot as pltplt.rcParams["font.family"] = 'Arial Unicode MS'#可用以下语句列出matploylib支持的字体文本;import matplotliba=sorted([...原创 2020-03-09 20:38:17 · 210 阅读 · 0 评论