📜  设置 xlim 直方图 python 代码示例

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

代码示例1
import numpy as np
import matplotlib.pyplot as plt

x = np.random.uniform(-100, 100, 1000)
plt.hist(x, bins=30, range=(-50, 50))
plt.show()