直方图绘制参数详解
生成数据:
import numpy as np
np.random.seed(0)
data = np.random.randn(1000000)*10
data = data.astype(np.int8)
最麻烦的方法:
import matplotlib.pyplot as plt
num_dict = {}
for num in data:
if num in num_dict:
num_dict[num] += 1
else:
num_dict[num] = 1
keys = list(num_dict.keys())
values = list(n
2022-11-09 13:50:05
118KB
分布
学习
数据
1