Ajouter un titre au tracé Seaborn
Dans ce didacticiel, nous verrons comment ajouter un titre à une intrigue marine. Utilisez la fonction set_title() pour ajouter un titre à un tracé Seaborn Un tracé Seaborn renvoie un objet de type instance d’axes matplotlib. Pour de tels objets, nous pouvons utiliser la fonction set_title() pour ajouter un titre au tracé. Par example, import pandas as pd import matplotlib.pyplot as plt import seaborn as sns df = pd.DataFrame( {"Day 1": [7, 1, 5, 6, 3, 10, 5, 8], "Day 2": [1, 2, 8, 4, 3, 9, 5, 2]} ) p = sns.