matplotlib
井冈山上的游击天才
武汉科技大学
计算机技术专业
研究生
展开
-
matplotlib画图系列之设置坐标轴(精度、范围,标签,中文字符显示)
https://blog.csdn.net/weixin_34613450/article/details/81633350原创 2021-12-28 10:38:33 · 881 阅读 · 0 评论 -
matplotlib Y轴两侧都有标签
https://blog.csdn.net/weixin_44208569/article/details/99052273原创 2021-12-26 13:15:42 · 784 阅读 · 0 评论 -
并列柱状图
https://blog.csdn.net/qq_29721419/article/details/71638912原创 2021-12-23 21:12:46 · 98 阅读 · 0 评论 -
Matplotlib入门-4-plt.legend( )创建图例
https://zhuanlan.zhihu.com/p/111108841原创 2021-12-23 19:53:11 · 724 阅读 · 0 评论 -
plt.savefie()保存不完整,yticks,x轴或y轴标签被截断
今天在用Python的plt.savefig()函数保存图片到本地时,发现保存下来的图片不完整,x轴标签被截断了。经过一番搜索,找到了解决方法:加上参数bbox_inches = 'tight’即可:plt.savefig('./XGBoost-features_importance.pdf',bbox_inches = 'tight')...原创 2021-02-04 18:31:06 · 1446 阅读 · 0 评论