你知道吗 嗨,我正在绘制熊猫数据帧。熊猫数据框如下所示:
;Cosine;Neutralized
author;0.842075;0.641600
genre;0.839696;0.903227
author+genre;0.833966;0.681121
我使用的绘图代码是:
fig = ari_total.plot(kind="bar", legend = False, colormap= "summer",
figsize= ([7,6]), title = "Homogeinity "+corpora+" (texts: "+str(amount_texts)+")", table=True,
use_index=False, ylim =[0,1]).get_figure()
如您所见,表“author”、“genre”和“author+gender”的索引中的lab呈现为0、1和2以上。你知道吗
我的问题是:如何删除这些数字,并且仍然使用相同的函数?我正在使用参数use\u index=False,我以为他们会从条中删除标签,但实际上它只会用这个数字替换它们。。。你知道吗
如果你能帮忙,我将非常感激。当做!你知道吗
使用
fig.axes[0].get_xaxis().set_visible(False)
。你知道吗代码:
结果:
相关问题 更多 >
编程相关推荐