感谢另一个回答question我能够在python中生成我的第一个圆形条形图 .

ax = plt.subplot(projection='polar')
ax.set_theta_zero_location('S')
ax.set_theta_direction(-1)
ax.set_rlabel_position(0)
ax.set_yticklabels(['','','','first','second','third','fourth','fifth'])
ax.set_xticklabels([])
ax.grid(False)
ax.spines['polar'].set_visible(False)
ax.barh([0,1, 2, 3, 4, 5, 6,7,8], np.radians([0,0,0,0,30,50, 100, 130, 180]),color=plt.rcParams['axes.prop_cycle'].by_key()['color'])

输出图如下所示 .

我现在想要格式化标签,使其与条形图一致,并希望在条形图的顶端显示条形图的长度值 . 尝试了从matplotlib中的常规(非圆形)条形图借来的各种例子,但似乎都没有适用 .

enter image description here