How to plot line connecting tops of bar plot in Seaborn

Viewed 327

I have a grouped bar plot and want to link the top of the bars with a kind of trend line.

On the picture I combined a barplot with a pointplot, but it did not lead to the desired result.

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)

enter image description here

Anybody got an idea?Unfortunately I am still a beginner in this area :D

0 Answers
Related