Mas*_*n87 10 python graph matplotlib seaborn
我想为我的 seaborn catplot 设置一个标题,但是当我尝试使用以下代码时:
ax = sns.catplot(x="AA", col="BB",data=df, kind="count",order= AA,
height=5, aspect=1.9)
ax.set_title("Title")
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
AttributeError: 'FacetGrid' object has no attribute 'set_title'
Run Code Online (Sandbox Code Playgroud)