用来正常显示中文标签
# 自定义标签
labels = ['a', 'b', 'c', 'd', 'e']
# 初始化布局
fig = plt.figure(figsize=(12,3))
# 条形图...1
plt.subplot(1, 3, 1)
sns.barplot(x=labels, y=[17,18,20,22,24], errorbar=None)
# 条形图2
plt.subplot(...1, 3, 2)
sns.barplot(x=labels, y=[20,18,21,20,20], errorbar=None)
# 条形图3
plt.subplot(1, 3, 3)
sns.barplot...(x=labels, y=[24,23,21,19,18], errorbar=None)
plt.show()
总结
以上通过matplotlib的pie快速绘制饼图,并通过修改参数或者辅以其他绘图知识自定义各种各样的饼图来适应相关使用场景...也提醒了在多个饼图间进行比较的困难,更建议使用条形图。