Skip to content

Commit

Permalink
Update legend.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Apr 4, 2022
1 parent 321232d commit f950aa8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions doc/python/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,25 +150,6 @@ fig.update_layout(legend=dict(
fig.show()
```

### Legend Groups

```python
import plotly.express as px

df = px.data.gapminder().query("year==2007")
fig = px.scatter(df, x="gdpPercap", y="lifeExp", color="continent",
size="pop", size_max=45, log_x=True)

fig.update_layout(legend=dict(
yanchor="top",
y=0.99,
xanchor="left",
x=0.01
))

fig.show()
```

#### Legends in Dash

[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`.
Expand Down

0 comments on commit f950aa8

Please sign in to comment.