Skip to content

Commit aebf143

Browse files
committed
format examples
1 parent 24cf76f commit aebf143

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

doc/python/line-and-scatter.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ df = px.data.medals_long()
130130

131131
fig = px.scatter(df, y="count", x="nation", color="medal")
132132
fig.update_traces(marker_size=10)
133-
fig.update_layout(
134-
scattermode='group',
135-
)
133+
fig.update_layout(scattermode="group")
136134
fig.show()
137135
```
138136

@@ -147,11 +145,7 @@ df = px.data.medals_long()
147145

148146
fig = px.scatter(df, y="count", x="nation", color="medal")
149147
fig.update_traces(marker_size=10)
150-
fig.update_layout(
151-
scattermode='group',
152-
scattergap=0.75
153-
)
154-
148+
fig.update_layout(scattermode="group", scattergap=0.75)
155149
fig.show()
156150
```
157151

0 commit comments

Comments
 (0)