plotly 箱线图中栅栏的定义

Definition of fences in plotly's boxplot

如何在 plotly 的箱线图函数中计算下围栏和上围栏,即 plotly.express.box() resp。 plotly.graph_objects.Box?

我在文档中找不到任何关于它的奇怪信息,因为有多种方法可以定义 fences/whiskers…

这应该在文档中,很快就会:

Each box spans from quartile 1 (Q1) to quartile 3 (Q3). The second quartile (Q2) is marked by a line inside the box. By default, the whiskers correspond to the boxes' edges +/- 1.5 times the interquartile range (IQR: Q3-Q1)

Source: Plotly.js source code description