我正在使用seaborn创建一个箱线图。但是如何添加一条线或单个点以显示图表上的单个数据值呢?例如,我该如何在下面的图表中绘制值为3.5的数据。
import seaborn as sns
import matplotlib.pyplot as plt
df1 = [2.5, 2.5, 2, 3, 4, 3.5]
sns.set_style("whitegrid")
fig, ax = plt.subplots(figsize=(8,8))
plot1 = sns.boxplot(ax=ax, x=df1, linewidth=5)