8000 itemsizing by Mahdis-z · Pull Request #214 · plotly/plotly.py-docs · GitHub
[go: up one dir, main page]

Skip to content

itemsizing #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
minor modification
  • Loading branch information
mahdis-z committed Nov 25, 2019
commit 023edca96faa3f655ae9d2ec4bba7234d278ddec
6 changes: 3 additions & 3 deletions python/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ fig.update_layout(

fig.show()
```
### Legend Size
### Size of Legend Items

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.
```python
Expand All @@ -229,14 +229,14 @@ fig.add_trace(go.Scatter(
x=[1, 2, 3, 4, 5],
y=[1, 2, 3, 4, 5],
mode='markers',
marker={'size':[10,9,3,6,4], 'sizemode': 'diameter'}
marker={'size':10}
))

fig.add_trace(go.Scatter(
x=[1, 2, 3, 4, 5],
y=[5, 4, 3, 2, 1],
mode='markers',
marker={'size':[700,2000,400,1000,750], 'sizemode':'area'}
marker={'size':100}
))

fig.update_layout(legend= {'itemsizing': 'constant'})
Expand Down
0