When I use %matplotlib notebook, the legend is not displayed.
%matplotlib notebook
...
fg = seaborn.FacetGrid(data=df, hue='Scenario', hue_order=df.Scenario.unique().tolist(), aspect=1.61)
fg.map(plt.scatter, 'Yaw', 'posNoseEye').add_legend()
While when I use %matplotlib inline, the legend is correctly shown.
%matplotlib inline
...
fg = seaborn.FacetGrid(data=df, hue='Scenario', hue_order=df.Scenario.unique().tolist(), aspect=1.61)
fg.map(plt.scatter, 'Yaw', 'posNoseEye').add_legend()
How to manage it in %matplotlib notebook ? Thanks
As I can't put image in the comment, I tried the answer below and it still does not work.
I have the last version of matplotlib and seaborn.