Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在绘制互相关矩阵时,seaborn有什么方法可以可视化整个矩阵吗?我知道它是对称的,但是渲染整个矩阵可以更容易地目视检查它。
seaborn
目前还没有,尽管我正在开发一个更通用的热图功能。
删除代码中的“掩码”行。它们是将空值放在矩阵上部的那些。
# Generate a mask for the upper triangle mask = np.zeros_like(corr, dtype=np.bool) mask[np.triu_indices_from(mask)] = True
这就是掩盖上三角形的原因。