We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe7833a + df7e2a6 commit c105f45Copy full SHA for c105f45
doc/python/box-plots.md
@@ -233,16 +233,10 @@ import plotly.graph_objects as go
233
234
fig = go.Figure()
235
236
-fig.add_trace(go.Box(y=[
237
- [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
238
239
- [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
240
- ], name="Precompiled Quartiles"))
241
-
242
-fig.update_traces(q1=[ 1, 2, 3 ], median=[ 4, 5, 6 ],
+fig.add_trace(go.Box(q1=[ 1, 2, 3 ], median=[ 4, 5, 6 ],
243
q3=[ 7, 8, 9 ], lowerfence=[-1, 0, 1],
244
- upperfence=[5, 6, 7], mean=[ 2.2, 2.8, 3.2 ],
245
- sd=[ 0.2, 0.4, 0.6 ], notchspan=[ 0.2, 0.4, 0.6 ] )
+ upperfence=[7, 8, 9], mean=[ 2.2, 2.8, 3.2 ],
+ sd=[ 0.2, 0.4, 0.6 ], notchspan=[ 0.2, 0.4, 0.6 ], name="Precompiled Quartiles"))
246
247
fig.show()
248
```
0 commit comments