绘制方差直方图 # -*- coding:utf-8 -*- #https://matplotlib.org/gallery/index.html import matplotlib.pyplot as plt import numpy as np labels = ['G1', 'G2', 'G3']#【改】 y1=[100,68,79]#每个颜色(label)的三个数【改】 y2=[120,70,75] y3=[44, 55,66] err1=[7,2,6]#每个颜色的方差【改】 err2=[