I'm creating a big scatter matrix and want to change the text such that it is neat, aligned, doesn't overlap etc. To do this I want to explore reducing the font size and changing the text rotation (and anything else reasonable). How could I do this?
The following attempt has not worked:
scatter_matrix = pd.scatter_matrix(
data,
figsize = [15, 15],
marker = ".",
s = 0.2,
diagonal = "kde"
)
plt.xticks(fontsize = 2, rotation = -90)
plt.yticks(fontsize = 2)
plt.savefig("scatter_matrix.jpg", dpi = 700)