If you intend to use FacetGrid with one of the categorical building functions, you need to specify order information by declaring the variables as categorical or with the order and hue_order :
g = sns.FacetGrid(titanic, col='pclass', hue='survived') g = g.map(sns.swarmplot, 'sex', 'age', order=["male", "female"], hue_order=[0, 1])

However, as a rule, it is preferable to use factorplot , which will take care of this bookkeeping for you, and also save you when entering text:
g = sns.factorplot("sex", "age", "survived", col="pclass", data=titanic, kind="swarm")

source share