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


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -