import seaborn as sns titanic = sns.load_dataset("titanic") hue_order = ['Third', 'Second', 'First'] sns.catplot(x="sex", y="survived", hue="class", data=titanic, hue_order=hue_order, kind="bar")