相关疑难解决方法(0)

如何在 Seaborn 的聚类树状图中指定线宽

通常我会通过编辑 matplotlib.rcParams 来增加 matplotlib 的全局线宽。这似乎可以直接与SciPy 的树状图实现配合使用,但不适用于Seaborn 的 clustermap(它使用 SciPy 的树状图)。谁能建议一种工作方法?

import matplotlib
matplotlib.rcParams['lines.linewidth'] = 10
import seaborn as sns; sns.set()

flights = sns.load_dataset("flights")
flights = flights.pivot("month", "year", "passengers")
g = sns.clustermap(flights)
Run Code Online (Sandbox Code Playgroud)

python matplotlib seaborn

2
推荐指数
1
解决办法
3269
查看次数

标签 统计

matplotlib ×1

python ×1

seaborn ×1