首页 > 解决方案 > 线条不断出现在我的图表中。为什么会这样?我该如何摆脱它们?

问题描述

role = DMGC_combined_df['Primary Role']

wins = DMGC_combined_df['wins']

plt.bar(role,wins)

plt.xlabel("Primary Role")

plt.ylabel("Wins")

plt.title('Wins per Primary Role in Top 4 Tiers')

plt.show()

#this is all my code is at this point,不确定为什么线条会出现在我的图表上

在此处输入图像描述

标签: matplotlibbar-chart

解决方案


推荐阅读