10000 Update doc/python/selections.md · Coding-with-Adam/plotly.py@186dec4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 186dec4

Browse files
LiamConnorsarchmoj
andauthored
Update doc/python/selections.md
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
1 parent e955334 commit 186dec4

File tree

1 file changed

+ D246 3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/python/selections.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ fig.show()
6060
## Selections using Path
6161

6262

63-
In the above example, we added a rectangular selection (`type="rect"`). You can also render a custom SVG for a selection by setting `type="path"` and defining a `path`. Here, we create a selection with the path "M2,6.5L4,7.5L4,6Z"
63+
In the above example, we added a rectangular selection (`type="rect"`). You can also render a custom SVG for a selection by defining a `path` that can include single or multiple polygons. Here, we create a selection with a single polygon path "M2,6.5L4,7.5L4,6Z".
64+
65+
Please note that multiple polygons e.g. "M0,0L0,10L10,10,L10,0Z M2,2L2,8L8,8,L8,2Z" could be used to subtract certain regions from the selection.
6466

6567
```python
6668
import plotly.express as px

0 commit comments

Comments
 (0)
0