From f950aa8a81a3a7e76788efa694a2f38d122aadff Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Mon, 4 Apr 2022 13:03:47 -0400 Subject: [PATCH] Update legend.md --- doc/python/legend.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/doc/python/legend.md b/doc/python/legend.md index ac06bb8ff2..da1fbc2323 100644 --- a/doc/python/legend.md +++ b/doc/python/legend.md @@ -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`.