How to add title to seaborn boxplot
问题 Seems pretty Googleable but haven't been able to find something online that works. I've tried both sns.boxplot('Day', 'Count', data= gg).title('lalala') and sns.boxplot('Day', 'Count', data= gg).suptitle('lalala') . None worked. I think it might be because I'm also working with matplotlib. 回答1: Seaborn box plot returns a matplotlib axes instance. Unlike pyplot itself, which has a method plt.title() , the corresponding argument for an axes is ax.set_title() . Therefore you need to call sns