鍍金池/ 問答/數(shù)據(jù)分析&挖掘  Python  網(wǎng)絡安全/ Python seaborn繪直方圖怎么顯示柱子的邊界?

Python seaborn繪直方圖怎么顯示柱子的邊界?

圖片描述

這是我的程序跑出來的

import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
sns.set(style='darkgrid', palette='muted', color_codes=True)
x = np.random.normal(size=100)
sns.distplot(x)

plt.show()

如何像下圖那樣顯示柱子的邊界
312.png

回答
編輯回答
真難過

sea.distplot(x,hist_kws=dict(edgecolor='k'))

2018年1月7日 23:20