Option scales for marine life?

I would like to have a seaborn distplot weights option similar to the one in the numpy histogram. Without this option, the only alternative would be to apply weighting to the input array, which can lead to an impractical size (and time).

+5
source share
1 answer

You can provide weight by passing them to the main matplotlib histogram function with the hist_kws argument, like:

 sns.distplot(..., hist_kws={'weights': your weights array}, ...) 

Please note that weights will only be transferred to the base histogram; neither kde nor the distplot fit distplot will be affected.

+4
source

All Articles