My understanding is that the below code shall produce histograms in the diagonal boxes. Instead, I am getting density curves? Why is this? If I remove 'hue','palette' and 'diag_kws', it produces histograms as expected. Any inputs?
sns.pairplot(data=ins_pre,
vars=["fatal_collisions", "premiums",'insurance_losses'],
kind='scatter',
hue='Region',
palette='RdBu',
diag_kws={'alpha':.5})
plt.show()
plt.clf()
Plot the same data but remove 'hue','palette' and 'diag_kws'
sns.pairplot(data=ins_pre,
vars=["fatal_collisions", "premiums",'insurance_losses'],
kind='scatter')
plt.show()
plt.clf()

