seaborn 中小提琴图的范围不准确

inaccurate range of violin plots in seaborn

由于某些原因,绘图的范围不准确。在我的数据中没有负值。

当我将范围设置为 -100 到 100 时,分布的某些部分低于 0 标记。

来自documentation

"As you can see above, the nature of the Gaussian KDE process means that estimation extends past the largest and smallest values in the dataset. It’s possible to control how far past the extreme values the curve is drawn with the cut parameter; however, this only influences how the curve is drawn and not how it is fit"