📜  python 绘图箱未与轴对齐 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.794000             🧑  作者: Mango

代码示例1
# Basic syntax for left-aligned bins:
plt.hist(data, bins=range(number)) 

# Basic syntax for center-aligned bins:
plt.hist(data, bins=np.arange(number)-0.5)