Skip to content

Commit 023edca

Browse files
author
mahdis-z
committed
minor modification
1 parent 075fa61 commit 023edca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/legend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ fig.update_layout(
217217

218218
fig.show()
219219
```
220-
### Legend Size
220+
### Size of Legend Items
221221

222222
In this example [itemsizing](https://plot.ly/python/reference/#layout-legend-itemsizing) attribute determines the legend items symbols remain constant, regardless of how tiny/huge the bubbles would be in the graph.
223223
```python
@@ -229,14 +229,14 @@ fig.add_trace(go.Scatter(
229229
x=[1, 2, 3, 4, 5],
230230
y=[1, 2, 3, 4, 5],
231231
mode='markers',
232-
marker={'size':[10,9,3,6,4], 'sizemode': 'diameter'}
232+
marker={'size':10}
233233
))
234234

235235
fig.add_trace(go.Scatter(
236236
x=[1, 2, 3, 4, 5],
237237
y=[5, 4, 3, 2, 1],
238238
mode='markers',
239-
marker={'size':[700,2000,400,1000,750], 'sizemode':'area'}
239+
marker={'size':100}
240240
))
241241

242242
fig.update_layout(legend= {'itemsizing': 'constant'})

0 commit comments

Comments
 (0)