There may be an easier way to do this, but it works:
import matplotlib import seaborn as sns; sns.set() flights = sns.load_dataset("flights") flights = flights.pivot("month", "year", "passengers") g = sns.clustermap(flights) for l in g.ax_row_dendrogram.lines: l.set_linewidth(10) for l in g.ax_col_dendrogram.lines: l.set_linewidth(10)
Change This no longer works in Seaborn v. 0.7.1 (and probably some earlier versions); g.ax_col_dendrogram.lines now returns an empty list. I could not find a way to increase the line width, and in the end I temporarily changed the Seaborn module. In the matrix.py file, class _DendrogramPlotter function, the line width is hardcoded as 0.5; I changed it to 1.5:
line_kwargs = dict(linewidths=1.5, colors='k')
This worked, but obviously not a very sustainable approach.
source share