# Seaborn Pairplot not showin colors of the labels

My dataframe looks similar to this

I am using the following line to graph the pairplot

sns.pairplot(iris, hue = 'States', height=7, aspect=0.8 )



The graph is good but I am confused why do the labels on the side have no color corresponding to the graph?

Without looking at the code you have used to generate the pair plot, I can see that, for example, the column name which inputted as the "hue" to the pair plot function should be used as the legend title. However, the title of this legend on the plot is not the same as the given column name. So, my first intuition leads to me to believe that you might have overwritten the legend attributes after this line sns.pairplot() line (maybe using plt.legend() after the pairplot line). Hence, maybe why the colours do not appear as well.