i80386

直方图:分布的最常用表示方法

表示分布最常用的方法就是直方图histogram,这种图用于展示各个值出现的频率和概率

import
Pmf import operator import matplotlib.pyplot as pyplot hist = Pmf.MakeHistFromList([1, 2, 2, 3, 5]) vals, freqs = hist.Render() rectangles = pyplot.bar(vals, freqs) pyplot.show()


import matplotlib.pyplot as pyplot

pyplot.pie([1, 2, 3])
pyplot.show()


 

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2021-12-19
  • 2022-02-10
  • 2022-02-10
  • 2022-02-23
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2021-12-02
  • 2021-12-04
  • 2021-12-10
  • 2021-12-19
  • 2022-02-09
  • 2022-01-01
  • 2022-01-08
相关资源
相似解决方案