SeaBorn热图:为矩形叠加层添加填充

时间:2018-12-05 10:44:18

标签: python matplotlib seaborn

在用户 @SimonGibbons 中,从answerAdd custom border to certain cells in a matplotlib / seaborn plot

一个单元格通过以下方式突出显示:

ax = g.ax_heatmap

ax.add_patch(Rectangle((3, 4), 1, 1, fill=False, edgecolor='blue', lw=3))

值得注意的是,这里的线宽(lw)设置为3。当在图的边缘突出显示单元格时,我发现该线被截断,因为一半的线宽位于内部情节和外面的一半。

如何使用seaborn来在热图的框架中添加lw / 2填充以查看整个突出显示的区域?

0 个答案:

没有答案