问题
I'm using PairGrid but I don't understand what does y axis means for distplot. I thought it represents a count. But it's starting from negative values in the pairgrid. If I make only the distplot, I'm getting the count.
I don't know if it's clear so, there's some plots :
My PairGrid:
My distplot :
The distplot is the same as the plot in the top left corner of the PairGrid.
The code corresponding to this is :
sns.distplot(pd.DataFrame(mySerie), kde=False)
and for the PairGrid :
g = sns.PairGrid(myDataFrame)
g = g.map_diag(sns.distplot, kde=False)
g = g.map_offdiag(plt.scatter)
Thank you in advance
回答1:
It was understanding (although I could be mistaken) that the y-axis in your histograms is the fraction of the total counts. For example, in my distplot, roughly 0.08 or 8% of rows are in the 0-5 bin My Distplot
来源:https://stackoverflow.com/questions/50525473/seaborn-how-to-get-the-count-in-y-axis-for-distplot-using-pairgrid