Control individual linewidths in seaborn heatmap
问题 Is it possible to widen the linewidth for sepcific columns and rows in a seaborn heatmap? For example, can this heatmap import numpy as np; np.random.seed(0) import seaborn as sns; sns.set() uniform_data = np.random.rand(10, 12) ax = sns.heatmap(uniform_data, linewidths=1.0) be transformed into something like this: 回答1: It's possible, but may be a lot of work. A possible solution might look like shown below. It involves plotting 6 different heatmaps and adjusting the spacings such that it