0

For example I have am plotting box plots this way :-

plt.figure(figsize=(8,5))
sns.boxplot(x='class',y='age',data=titanic, palette='rainbow')
plt.title("Age by Passenger Class, Titanic")

enter image description here

I want to set the order of class like Thrid class,First class ,Second Class from left to right on the box plots then what should I do?

NOTE : Tried hue_order but I find no difference in the results enter image description here

Scope
  • 727
  • 4
  • 15

0 Answers0