以下のコードを実行すると、画像のように真ん中のグラフのみが飛び出てしまいます。解決方法を教えてください。
#3つを並べて比較
#サイズを変更
plt.figure(figsize=(12, 6))
plt.subplot(131)
plt.hist(X1, bins=10, range=None, density=False, weights=None,
cumulative=False, bottom=None, histtype='bar',
align='mid', orientation='vertical', rwidth=None,
log=False, color=None, label=None, stacked=False,
hold=None, data=None, )
plt.title("1")
plt.yticks(np.arange(0, 480000, 50000))
plt.subplot(132)
plt.hist(X2, bins=10, range=None, density=False, weights=None,
cumulative=False, bottom=None, histtype='bar',
align='mid', orientation='vertical', rwidth=None,
log=False, color=None, label=None, stacked=False,
hold=None, data=None, )
plt.title("2")
plt.yticks(np.arange(0, 480000, 50000))
plt.subplot(133)
plt.hist(X3, bins=10, range=None, density=False, weights=None,
cumulative=False, bottom=None, histtype='bar',
align='mid', orientation='vertical', rwidth=None,
log=False, color=None, label=None, stacked=False,
hold=None, data=None, )
plt.title("3")
plt.yticks(np.arange(0, 480000, 50000))
plt.show()
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。