摘要: 设置图片长宽比 有以下方法: plt.gcf().set_size_inches(width, height) # 单独设置 plt.gcf()代表获取pyplot目前的figure对象 调用返回的figure对象set_size_inches方法调节画布尺寸 也可以直接用fig对象的set_siz 阅读全文
posted @ 2023-01-21 12:24 小鱼圆又圆 阅读(7159) 评论(0) 推荐(0)
摘要: loc参数 Location String Location Code 'best' 0 'upper right' 1 'upper left' 2 'lower left' 3 'lower right' 4 'right' 5 'center left' 6 'center right' 7 阅读全文
posted @ 2023-01-21 12:13 小鱼圆又圆 阅读(166) 评论(0) 推荐(0)
摘要: matplotlib 设置字体 首先确保有字体文件 windows字体文件夹:C:\Windows\Fonts Linux字体文件夹:/usr/share/fonts 只要把字体文件复制粘贴到对应文件夹即可使用。 阅读全文
posted @ 2023-01-21 11:55 小鱼圆又圆 阅读(82) 评论(0) 推荐(0)