How to make heatmap square in Seaborn FacetGrid

前端 未结 2 1573
野趣味
野趣味 2021-02-07 00:16

I\'m using Seaborn\'s FacetGrid class to plot a set of matrices using the heatmap function, also from Seaborn. However, I cannot adjust the aspect rati

2条回答
  •  生来不讨喜
    2021-02-07 00:45

    You could use the square=True parameter substituting this in your code:

    fg.map_dataframe(draw_heatmap, 'label1', 'label2', 'value', cbar=False, square=True)
    

提交回复
热议问题