Skip to content

Commit

Permalink
Merge pull request #4282 from patelvyom/patch-1
Browse files Browse the repository at this point in the history
Update box-plots.md
  • Loading branch information
LiamConnors authored Sep 19, 2024
2 parents fe7833a + df7e2a6 commit c105f45
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions doc/python/box-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,10 @@ import plotly.graph_objects as go

fig = go.Figure()

fig.add_trace(go.Box(y=[
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
], name="Precompiled Quartiles"))

fig.update_traces(q1=[ 1, 2, 3 ], median=[ 4, 5, 6 ],
fig.add_trace(go.Box(q1=[ 1, 2, 3 ], median=[ 4, 5, 6 ],
q3=[ 7, 8, 9 ], lowerfence=[-1, 0, 1],
upperfence=[5, 6, 7], mean=[ 2.2, 2.8, 3.2 ],
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"))

fig.show()
```
Expand Down

0 comments on commit c105f45

Please sign in to comment.