我正在使用matplotlib.pyplot.barh绘制水平条形图,并想移动条形图的位置。我没有找到任何支持这一点的论点。有人遇到同样的问题吗?
ax1.set_title('Number of Accounts', size=12)
ax1.invert_yaxis()
ax1.invert_xaxis()
ax1.barh(c['Customer Group'], c['n_accts'],color='#f4be92')
现在1的小节在0到1之间,而2的小节在1和2之间。是否可以将小节移动到其相应编号所在的位置?
答案 0 :(得分:1)