Я довольно новичок в Python / pandas и других библиотеках, вот мой код
sns.set(style='whitegrid')
plt.figure(figsize=(20,20))
sns.barplot(df.genres.value_counts().index, df.genres.value_counts())
plt.xticks(rotation=45)
plt.xlabel('genres')
plt.ylabel('Count', rotation=0)
plt.title('Graph showing the count for each genre in the dataset')
plt.legend();
![Here is the graph](https://i.stack.imgur.com/gsVA4.jpg)
Я хочу цветовой код от сюжета, который будет показан как легенда. Как я могу это сделать? Спасибо за помощь заранее. Приветствуются любые предложения по повышению эффективности кода