python - How to add a title to Seaborn Facet Plot -


how add title seaborne plot? let's give title 'i title'.

tips = sns.load_dataset("tips") g = sns.facetgrid(tips, col="sex", row="smoker", margin_titles=true) g.map(sns.plt.scatter, "total_bill", "tip") 

plot

after lines:

plt.subplots_adjust(top=0.9) g.fig.suptitle('this title, bet') # can figure plt.gcf() 

if add suptitle without adjusting axis, seaborn facet titles overlap it.

(with different data):

enter image description here