matplotlib/seaborn: first and last row cut in half of heatmap plot

前端 未结 11 1331
猫巷女王i
猫巷女王i 2020-11-21 13:35

When plotting heatmaps with seaborn (and correlation matrices with matplotlib) the first and the last row is cut in halve. This happens also when I run this minimal code exa

11条回答
  •  野的像风
    2020-11-21 14:13

    Worked for me:

    b, t = plt.ylim()
    b += 0.5
    t -= 0.5
    custom_ylim = (b, t)
    plt.setp(axes, ylim=custom_ylim)
    

提交回复
热议问题