yticks

Setting xtick labels in of an sns.heatmap subplot

Setting xtick labels in of an sns.heatmap subplot Question: I am trying to put 3 subplots of sns.heatmap with custom xticklabels and yticklabels. You can see that the labels I enter overlaps with some default labels. How to avoid this? glue = sns.load_dataset("glue").pivot("Model", "Task", "Score") xlabels=[‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’] ylabels=[‘AA’,’BB’,’CC’,’DD’,’EE’,’FF’,’GG’,’HH’] fig, (ax1,ax2,ax3) = plt.subplots(nrows=1, ncols=3,figsize=(24,8)) ax1 = fig.add_subplot(1,3,1) …

Total answers: 1