小编Joã*_*mes的帖子

是否可以将数字放在 matplot 直方图上?

import matplotlib.pyplot as plt
import numpy as np

randomnums = np.random.normal(loc=9,scale=6, size=400).astype(int)+15
Run Code Online (Sandbox Code Playgroud)

输出:

array([25, 22, 19, 26, 24,  9, 19, 32, 30, 25, 29, 17, 21, 14, 17, 27, 27,
       28, 17, 17, 20, 21, 16, 28, 20, 24, 15, 20, 20, 13, 33, 21, 30, 27,
        8, 22, 24, 25, 23, 13, 24, 20, 16, 32, 15, 26, 34, 16, 21, 21, 28,
       22, 23, 18, 20, 22, 23, 22, 23, 26, 22, 25, 19, 29, 14, 27, 21, …
Run Code Online (Sandbox Code Playgroud)

python statistics numpy matplotlib histogram

6
推荐指数
1
解决办法
2861
查看次数

标签 统计

histogram ×1

matplotlib ×1

numpy ×1

python ×1

statistics ×1