热图不支持阿拉伯语字母B

2024-09-30 12:34:42 发布

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

我不能在热图的y轴上显示阿拉伯字母 这是我的密码

import seaborn as sns; sns.set()
heat = Heating_map.pivot("ISIC4_ARABIC", "BUSINESS_CATEGORY", "Yes")

import matplotlib.pyplot as plt

plt.figure(figsize = (25,15))

ax = sns.heatmap(heat, cmap='coolwarm', linewidths=1, annot=True, vmax=5, fmt='.1f', square=True, cbar=True)

enter image description here


Tags: importtrue密码mapas字母pltseaborn

热门问题