Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit023edca

Browse files
author
mahdis-z
committed
minor modification
1 parent075fa61 commit023edca

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-
###LegendSize
220+
###Size ofLegendItems
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)

[8]ページ先頭

©2009-2025 Movatter.jp