【学习记录】绘制数据的频率分布图的几种方法及进阶
直方图绘制参数详解 生成数据: 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
暂无评论