# Draw lines between points in box plot

**URL:** <https://community.plotly.com/t/draw-lines-between-points-in-box-plot/57746>\
**Category:** 📊 Plotly Python\
**Created:** [October 20, 2021, 10:05am UTC](https://community.plotly.com/t/draw-lines-between-points-in-box-plot/57746 "2021-10-20T10:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smajjk](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@smajjk](https://community.plotly.com/u/smajjk)\
**Post date:** [October 20, 2021, 10:05am UTC](https://community.plotly.com/t/draw-lines-between-points-in-box-plot/57746/1 "2021-10-20T10:05:11Z")

</div>

When drawing boxplots with plotly one can show individual datapoints with the “all” option, for example:

```auto
# from: https://plotly.com/python/box-plots/
import plotly.express as px
df = px.data.tips()
fig = px.box(df, x="time", y="total_bill", points="all")
fig.show()

```

I was wondering if there is some easyish way of drawing individual lines between points on the two boxes; to better show the situation where you have paired measurements.

Thank you 🙂
