阿拉伯文X轴值通过matplot在条形图中显示的字母未连接

2024-04-27 04:56:39 发布

您现在位置:Python中文网/ 问答频道 /正文

是关于阿拉伯语的。Python3已经在检索编码的对象,但是这些字母没有连接。你知道吗

我已经使用了arabic_reshaperbidi.algorithm

top20_sa.plot(kind="bar",x=get_display(arabic_reshaper.reshape(u"content_name")),y='time_spent_avg')

看起来是这样的:

plot

阿拉伯文应该是这样的:

enter image description here


Tags: 对象编码getplotdisplay字母sabar