Python画多列柱形图
import matplotlib.pyplot as plt
import warnings
warnings.filterwarnings = False
# 使文字可以展示
plt.rcParams['font.sans-serif'] = ['SimHei']
# 使负号可以展示
plt.rcParams['axes.unicode_minus'] = False
#定义函数来显示柱状图
def autolabel(rects):
for rect in rects:
height = rect.get_height()
name &#