📌  相关文章
📜  均值 =[0,0] 协方差 = [[1,0],[0,100]] ds = np.random.multivariate_normal(mean,covariance,500) dframe = pd.DataFrame(ds, columns=['col1', ' col2']) fig = sns.kdeplot(dframe).get_figure() fig.savefig('kde1.png') - Python 代码示例

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

代码示例1
mean =[0,0]
covariance = [[1,0],[0,100]]

ds = np.random.multivariate_normal(mean,covariance,500)

dframe = pd.DataFrame(ds, columns=['col1', 'col2'])

fig = sns.kdeplot(dframe).get_figure()
fig.savefig('kde1.png')