目录 问题 解决方案 1.补充代码 2.更新安装包 问题 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