Skip to main content
 首页 » 编程设计

python之matplotlib 中的阿拉伯语文本

2025年05月04日8lidabo

<分区>

xlabel 和 ylabel 不显示阿拉伯语

x = [2, 4, 6, 8, 10] 
y = [6, 7, 8, 9, 10] 
 
plt.bar(x, y, label='Bar1', color='red') 
plt.xlabel("الفواصل") 
plt.ylabel("الترتيبات") 
plt.show()