菜鸟程序员博客

python绘制热力图标注符号

sns.heatmap(ax = ax, data = M, annot = A, fmt='')

添加变量fmt=' ',就可以在图上显示符号

默认变量fmt='.2g'只能显示数值

参考链接:seaborn热图批注值错误:'numpy.str_'类型的对象的未知格式代码“g” - 我爱学习网 (5axxw.com)

« Previous

Dart笔记 - extends、with、implements

Next »

petalinux 多文件程序Makefile与.bb文件配置

© 2024 菜鸟程序员博客. Generated with Hugo and Mainroad theme.