12

I want to set a title to my seaborn catplot, but when I try with this code:

ax = sns.catplot(x="AA", col="BB",data=df, kind="count",order= AA,
                  height=5, aspect=1.9)

ax.set_title("Title")

I get this error:

AttributeError: 'FacetGrid' object has no attribute 'set_title'
ImportanceOfBeingErnest
  • 289,005
  • 45
  • 571
  • 615
Mastodon87
  • 323
  • 3
  • 6
  • 13

0 Answers0