#绘图
import matplotlib.pyplot as plt
import seaborn as sns
plt.rcParams['figure.dpi'] = 75 # 图形分辨率
sns.set_theme(style='darkgrid') # 图形主题
ax = sns.histplot(data=len_list)
ax.set_xlabel("Gene Length")
for p in ax.patches:
ax.text(p.get_x() + p.get_width()/2.,
p.get_height(),
p.get_height(),
color='black',
ha='center',
va='bottom')
plt.show()