0

Using the following code below:

import seaborn as sns

tips = sns.load_dataset("tips")
g = sns.relplot(data=tips, x="total_bill", y="tip", hue="day", col="time")

I am getting this figure: enter image description here

However, I'd like to change the title for each plot, something like "Plot A" for the left one and "Plot B" for the right one. I am using the following command to change the title;

g.set_titles('Plot A')

But that changes the title of both of them to Plot A. How to change it?

AneesBaqir
  • 423
  • 1
  • 12

0 Answers0