data = pd.DataFrame(np.random.normal(size=40 * 40).reshape(40, 40))
yticks = data.index
keptticks = yticks[::int(len(yticks) / 10)]
yticks = ['' for y in yticks]
yticks[::int(len(yticks) / 10)] = keptticks
xticks = data.columns
keptticks = xticks[::int(len(xticks) / 10)]
xticks = ['' for y in xticks]
xticks[::int(len(xticks) / 10)] = keptticks
sns.heatmap(data, linewidth=0, yticklabels=yticks, xticklabels=xticks)
plt.yticks(rotation=0)
plt.show()
Изменение поворота галочек на тепловой карте Seaborn