Skip to content

Commit f03a9b4

Browse files
committed
Update line-and-scatter.md
1 parent 4f54799 commit f03a9b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/python/line-and-scatter.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fig.show()
121121

122122
*New in 5.12*
123123

124-
By default, scatter points at the same location are overlayed on one another. We can see this in the previous example, with the values for Canada for bronze and silver. Set `scattermode='group'` to plot scatter points next to one another, centered around the shared location.
124+
By default, scatter points at the same location are overlayed. We can see this in the previous example, with the values for Canada for bronze and silver. Set `scattermode='group'` to plot scatter points next to one another, centered around the shared location.
125125

126126
```python
127127
import plotly.express as px
@@ -136,7 +136,9 @@ fig.show()
136136

137137
*New in 5.12*
138138

139-
With `scattermode='group'`, a default scattergap of `0` is used. You can configure the gap between points using `scattergap`. Here we set it to `0.75` to bring the points closer together.
139+
You can configure the gap between points using `scattergap`. Here we set it to `0.75` to bring the points closer together.
140+
141+
If you don't set `scattergap`, a default value of `0` is used, unless you have `bargap` set. If you have `bargap` set, the `scattergap` defaults to that value.
140142

141143
```python
142144
import plotly.express as px

0 commit comments

Comments
 (0)