通常我会通过编辑 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)