Seaborn FacetGrid: how to leave the correct space on top for suptitle

Can someone show me how to leave extra space on top of FacetGrid? I'm trying to put a super-header at the beginning of the FacetGrid graph, but in the end I got a super-heading that overlaps the subplot headers due to the very limited edge at the top in the default settings.

thanks

+6
source share
1 answer

Use the Figure subplots_adjust method to add a place at the beginning of the chart:

 g = sns.lmplot("x", "y", col="c", data=df) g.fig.suptitle("Title of the plot", size=16) g.fig.subplots_adjust(top=.9) 
+12
source

Source: https://habr.com/ru/post/982809/


All Articles