我有一个成组的条形图,并希望将条形图的顶部与一种趋势线联系起来。
在图片上我结合了一个条形图和一个点图,但它并没有导致预期的结果。
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
1条答案
按热度按时间v6ylcynt1#
虽然有点晚,但也许将来有人会发现它很有用:
结果: