python - Python 组条形图问题
问题描述
fig, ax = plt.subplots()
bar_width = 0.35
ind=np.arange(0, len(app_groups['TIME']))
p1=ax.bar(ind+bar_width,app_groups['TIME'],bar_width)
p2=ax.bar(ind+bar_width,app_groups['Mean'],bar_width)
ax.legend((p1[0], p2[0]), ('TIME', 'MEAN'))
plt.show()
解决方案
推荐阅读
- laravel - Laravel 背包列表不显示
- sql - 在 case 表达式中更改日期中的年份
- python - faker 从哪里获得虚假数据?
- python - 按顺序在字符串中搜索展开的序列
- c# - 无法从 Playstore 应用程序 xamarin 表单获取最新版本
- swift - 为什么显示此警告:不支持的配置:直接从视图控制器启动的 Segue 必须具有标识符
- spring-boot - 如何对 3 个具有唯一约束及其关系的实体进行建模?
- angular - 如何获取模板中标签属性的值
- symfony - 在 Symfony 的 YAML 集合类型中混合数字键和字符串键
- java - 每次按下按钮时呈现颜色(lambda 表达式)