from numpy.random import randn
data = pd.DataFrame(dict(x=randn(40), y=randn(40), g=['a', 'b'] * 20))
sns.lmplot('x', 'y', hue='g', data=data, fit_reg=False)
Is there a way to make matplotlib scatter plot marker or color according to a discrete variable in a different column?