xticks[::int(len(xticks) / 10)] = keptticks
sns.heatmap(data, linewidth=0, yticklabels=yticks, xticklabels=xticks)
plt.yticks(rotation=0)
plt.show()
Changing the rotation of tick labels in Seaborn heatmap