[matplotlib03]python中用matplotlib绘制条形图

带偏差线的条形图 import matplotlib.pyplot as plt # 输入数据 mean_values = [1, 2, 3] variance = [0.2, 0.4, 0.5] bar_labels = ['bar 1', 'bar 2', 'bar 3'] # 绘制图形 x_pos = list(range(len(bar_labels))) plt.bar(x_po
相关文章
相关标签/搜索