# Circle brush for scatter plot

**URL:** <https://community.plotly.com/t/circle-brush-for-scatter-plot/97435>\
**Category:** plotly.js\
**Created:** [August 17, 2026, 10:32am UTC](https://community.plotly.com/t/circle-brush-for-scatter-plot/97435 "2026-08-17T10:32:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![binary](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@binary](https://community.plotly.com/u/binary)\
**Post date:** [August 17, 2026, 10:32am UTC](https://community.plotly.com/t/circle-brush-for-scatter-plot/97435/1 "2026-08-17T10:32:36Z")

</div>

Hello,

Is there any fragment code on how to add **multiple** circle bushes onto a scatter plot.

Any hints would be appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [August 19, 2026, 6:23pm UTC](https://community.plotly.com/t/circle-brush-for-scatter-plot/97435/3 "2026-08-19T18:23:30Z")

</div>

Hi @binary

Can you say more about what you are looking for? If you are just trying to allow the user to draw multiple circles you could use something like:

```auto
import plotly.express as px

df = px.data.iris()

fig = px.scatter(
    df,
    x="sepal_width",
    y="sepal_length",
)

fig.update_layout(
    dragmode="drawcircle",
    modebar_add=["drawcircle", "eraseshape"],
)

fig.show()

```

Or are you trying to allow the user to select points using a circle rather than lasso?
