Skip to content

Commit f412dd4

Browse files
committed
Update line-and-scatter.md
1 parent 60b9fea commit f412dd4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/python/line-and-scatter.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
4747
fig.show()
4848
```
4949

50-
**Try building a scatter plot.** Use the following interactive app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections.
51-
52-
```python hide_code=true
53-
from IPython.display import IFrame
54-
IFrame(src='https://scatter-plot-python.plotly.app/', width='100%', height=800)
55-
```
56-
5750
```python
5851
# x and y given as DataFrame columns
5952
import plotly.express as px
@@ -92,6 +85,13 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", symbol=
9285
fig.show()
9386
```
9487

88+
**Try building a scatter plot.** Use the following interactive app, hosted on [Plotly Cloud](https://plotly.com/cloud/), to see how the code updates based on your selections.
89+
90+
```python hide_code=true
91+
from IPython.display import IFrame
92+
IFrame(src='https://scatter-plot-python.plotly.app/', width='100%', height=800)
93+
```
94+
9595
## Scatter plots in Dash
9696

9797
[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)