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

前端 未结 11 1172
猫巷女王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条回答
  •  -上瘾入骨i
    2020-11-21 14:01

    Downgrade your matplotlib

    !pip install matplotlib==3.1.0
    

    and add this line to your plot code :

    ax[i].set_ylim(sorted(ax[i].get_xlim(), reverse=True))
     
    

提交回复
热议问题