Я не могу повернуть имена по осям y и x так, чтобы они перекрывали друг друга. Что я делаю не так?
yticks / xticks (вращение = 90) также не корректирует имена, чтобы предотвратить их наложение.
name = 'Anne Frank Diary'
df4 = df.loc[ my_list, my_list ].copy()
axes = pd.plotting.scatter_matrix(df4, figsize=(15, 15), marker='o',hist_kwds={'bins': 20}, s=60, alpha=.8)
corr = df4.corr().values
for i, j in zip(*plt.np.triu_indices_from(axes, k=1)):
axes[i, j].annotate("%.3f" %corr[i,j], (0.8, 0.8), xycoords='axes fraction', ha='left', va='center',rotation=90)
sst="%s \n Scatter Matrix of Centrality Indices \n (displaying Pearson correlation coefficients)" %name
plt.suptitle(sst,fontsize=20);
Обновление: https://github.com/markamcgown/Projects/blob/master/df.csv my_list = ['Kugler', 'Margot', 'Anne', 'Pirn', 'Kleiman', 'German', 'Dutch', 'Dussel ',' Приложение ',' Питер ',' Китти ',' Bep ',' Mouschi ',' Briti sh ',' Miep ',' van D. ']