目录
问题
matplotlib3.1.1版本的bug所在。
解决方案
1.补充代码
ax = sns.heatmap(...);
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
2.更新安装包
pip install --user --upgrade matplotlib==3.1.2
版权声明:本文为weixin_44447680原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
目录
matplotlib3.1.1版本的bug所在。
ax = sns.heatmap(...);
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
pip install --user --upgrade matplotlib==3.1.2