Drawing histogram of probability density function of a matrix in python [closed]

情到浓时终转凉″ 提交于 2021-01-29 20:12:30

问题


I have a 2D matrix of p-values. I want to draw a histogram of the pdf of this 2D matrix. How can I do that?


回答1:


Just so you know: Seaborn's distplot does all of this.

import seaborn as sns, numpy as np
sns.set_palette("cividis"); np.random.seed(0)
x = np.random.randn(100)
ax = sns.distplot(x)



来源:https://stackoverflow.com/questions/65860195/drawing-histogram-of-probability-density-function-of-a-matrix-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!