问题
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