Skip to content

Commit f950aa8

Browse files
committed
Update legend.md
1 parent 321232d commit f950aa8

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: doc/python/legend.md

-19
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,6 @@ fig.update_layout(legend=dict(
150150
fig.show()
151151
```
152152

153-
### Legend Groups
154-
155-
```python
156-
import plotly.express as px
157-
158-
df = px.data.gapminder().query("year==2007")
159-
fig = px.scatter(df, x="gdpPercap", y="lifeExp", color="continent",
160-
size="pop", size_max=45, log_x=True)
161-
162-
fig.update_layout(legend=dict(
163-
yanchor="top",
164-
y=0.99,
165-
xanchor="left",
166-
x=0.01
167-
))
168-
169-
fig.show()
170-
```
171-
172153
#### Legends in Dash
173154

174155
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.

0 commit comments

Comments
 (0)