# A histogram n = np.random.randn(100000) fig, axes = plt.subplots(1, 2, figsize=(12,4)) axes[0].hist(n) axes[0].set_title("Default histogram") axes[0].set_xlim((min(n), max(n))) axes[1].hist(n, cumulative=True, bins=50) axes[1].set_title("Cumulative detailed histogram") axes[1].set_xlim((min(n), max(n)));
這是從IPython的筆記本hereIn[41]
看來,柱狀圖不正確地與網格(見第一副區)對齊。這是我在自己的情節中面臨的同樣的問題。
有人可以解釋爲什麼嗎?
您是否可以在代碼中包含重現問題的代碼?你的ipython筆記本鏈接_will_ rot。 – tacaswell