2つ以上の histgram の bins の幅がいい感じにならなかったので
これでいい感じに揃えられた。
sns.set(font='IPAPGothic') plt.figure(figsize=(12, 4)) try: bins=np.histogram(np.hstack((tmp_0[col],tmp_1[col])), bins=50)[1] #get the bin edges except Exception as e: print(e) continue sns.distplot( tmp_0[col], bins=bins, kde=False, hist_kws={'log':True}, ) sns.distplot( tmp_1[col], bins=bins, kde=False, hist_kws={'log':True}, ) plt.ylabel('件数') plt.legend() plt.show()