Python | 水平条形图

A bar graph is a type of data visualization technique that is very often used to represent data in the form of a vertical bar and some cases of horizontal bars. The length of the bar is proportional to the value. They allow us to compare data very clearly and therefore, bar graphs or bar charts are included in most of the presentations worldwide. A bar graph can be used to show comparisons between discrete classes and one of the two axes represents the specific categories that are being compared, and the other axis represents a measured value.

条形图是一种数据可视化技术,通常用于以垂直条形和某些情况下以水平条形表示数据。 条的长度与值成正比。 它们使我们可以非常清晰地比较数据,因此,全球大多数演示中都包含条形图或条形图。 条形图可用于显示离散类别之间的比较,并且两个轴之一代表正在比较的特定类别,另一个轴代表测量值。

matplotlib allows us to use this particular class of data visualization via an inbuilt function matplotlib.barh().

matplotlib允许我们通过内置函数matplotlib.bar

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值