Python 如何在Seaborn中绘制条形图顶部的连线

Python 如何在Seaborn中绘制条形图顶部的连线,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,我有一个分组的条形图,想用一种趋势线连接条形图的顶部 在这张照片上,我将条形图与点图结合起来,但没有得到预期的结果 ax_line = fig_line.subplots() ax_line = sns.barplot(x="Number of Agents", y="Duration",data=df, palette="Set1", ci=None, hue="Szenario") ax_line = sns.pointplot(x="Anzahl Agenten", y="self.to

我有一个分组的条形图,想用一种趋势线连接条形图的顶部

在这张照片上,我将条形图与点图结合起来,但没有得到预期的结果

ax_line = fig_line.subplots()

ax_line = sns.barplot(x="Number of Agents", y="Duration",data=df, palette="Set1", ci=None, hue="Szenario")
ax_line = sns.pointplot(x="Anzahl Agenten", y="self.total_duration",hue="Szenario", data=df,palette="Set1", ci=None)


ax_line.set_ylabel("Duration",fontsize=15)
ax_line.set_xlabel("Number of Agents", fontsize=15)

有人有什么想法吗?不幸的是,我还是这方面的初学者:D