Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91fef13

Browse filesBrowse files
new px landing page
1 parent f3557f5 commit 91fef13
Copy full SHA for 91fef13

File tree

Expand file treeCollapse file tree

1 file changed

+30
-65
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+30
-65
lines changed

‎doc/python/plotly-express.md

Copy file name to clipboardExpand all lines: doc/python/plotly-express.md
+30-65Lines changed: 30 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The following set of figures is just a sampling of what can be done with Plotly
7878

7979
#### Scatter, Line, Area and Bar Charts
8080

81-
Read more about [scatter plots](/python/line-and-scatter/) and [discrete color](/python/discrete-color/).
81+
**Read more about [scatter plots](/python/line-and-scatter/) and [discrete color](/python/discrete-color/).**
8282

8383
```python
8484
import plotly.express as px
@@ -87,7 +87,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
8787
fig.show()
8888
```
8989

90-
Read more about [trendlines](/python/linear-fits/) and [templates](/python/templates/).
90+
**Read more about [trendlines](/python/linear-fits/) and [templates](/python/templates/).**
9191

9292
```python
9393
import plotly.express as px
@@ -97,7 +97,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", margina
9797
fig.show()
9898
```
9999

100-
Read more about [error bars](/python/error-bars/).
100+
**Read more about [error bars](/python/error-bars/).**
101101

102102
```python
103103
import plotly.express as px
@@ -107,7 +107,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", error_x
107107
fig.show()
108108
```
109109

110-
Read more about [bar charts](/python/bar-charts/).
110+
**Read more about [bar charts](/python/bar-charts/).**
111111

112112
```python
113113
import plotly.express as px
@@ -116,7 +116,7 @@ fig = px.bar(df, x="sex", y="total_bill", color="smoker", barmode="group")
116116
fig.show()
117117
```
118118

119-
Read more about [facet plots](/python/facet-plots/).
119+
**Read more about [facet plots](/python/facet-plots/).**
120120

121121
```python
122122
import plotly.express as px
@@ -126,7 +126,7 @@ fig = px.bar(df, x="sex", y="total_bill", color="smoker", barmode="group", facet
126126
fig.show()
127127
```
128128

129-
Read more about [scatterplot matrices (SPLOMs)](/python/splom/).
129+
**Read more about [scatterplot matrices (SPLOMs)](/python/splom/).**
130130

131131

132132
```python
@@ -136,7 +136,7 @@ fig = px.scatter_matrix(df, dimensions=["sepal_width", "sepal_length", "petal_wi
136136
fig.show()
137137
```
138138

139-
Read more about [parallel coordinates](/python/parallel-coordinates-plot/) and [parallel categories](/python/parallel-categories-diagram/), as well as [continuous color](/python/colorscales/).
139+
**Read more about [parallel coordinates](/python/parallel-coordinates-plot/) and [parallel categories](/python/parallel-categories-diagram/), as well as [continuous color](/python/colorscales/).**
140140

141141
```python
142142
import plotly.express as px
@@ -155,7 +155,7 @@ fig = px.parallel_categories(df, color="size", color_continuous_scale=px.colors.
155155
fig.show()
156156
```
157157

158-
Read more about [hover labels](/python/hover-text-and-formatting/).
158+
**Read more about [hover labels](/python/hover-text-and-formatting/).**
159159

160160
```python
161161
import plotly.express as px
@@ -165,7 +165,7 @@ fig = px.scatter(df.query("year==2007"), x="gdpPercap", y="lifeExp", size="pop",
165165
fig.show()
166166
```
167167

168-
Read more about [animations](/python/animations/).
168+
**Read more about [animations](/python/animations/).**
169169

170170
```python
171171
import plotly.express as px
@@ -176,7 +176,7 @@ fig = px.scatter(df, x="gdpPercap", y="lifeExp", animation_frame="year", animati
176176
fig.show()
177177
```
178178

179-
Read more about [line charts](/python/line-charts/).
179+
**Read more about [line charts](/python/line-charts/).**
180180

181181
```python
182182
import plotly.express as px
@@ -186,7 +186,7 @@ fig = px.line(df, x="year", y="lifeExp", color="continent", line_group="country"
186186
fig.show()
187187
```
188188

189-
Read more about [area charts](/python/filled-area-plots/).
189+
**Read more about [area charts](/python/filled-area-plots/).**
190190

191191
```python
192192
import plotly.express as px
@@ -197,7 +197,7 @@ fig.show()
197197

198198
### Part to Whole Charts
199199

200-
Read more about [pie charts](/python/pie-charts/).
200+
**Read more about [pie charts](/python/pie-charts/).**
201201

202202
```python
203203
import plotly.express as px
@@ -207,7 +207,7 @@ fig = px.pie(df, values='pop', names='country', title='Population of European co
207207
fig.show()
208208
```
209209

210-
Read more about [sunburst charts](/python/sunburst-charts/).
210+
**Read more about [sunburst charts](/python/sunburst-charts/).**
211211

212212
```python
213213
import plotly.express as px
@@ -218,7 +218,7 @@ fig = px.sunburst(df, path=['continent', 'country'], values='pop',
218218
fig.show()
219219
```
220220

221-
Read more about [treemaps](/python/treemaps/).
221+
**Read more about [treemaps](/python/treemaps/).**
222222

223223
```python
224224
import plotly.express as px
@@ -231,7 +231,7 @@ fig.show()
231231

232232
#### Distributions
233233

234-
Read more about [histograms](/python/histograms/).
234+
**Read more about [histograms](/python/histograms/).**
235235

236236
```python
237237
import plotly.express as px
@@ -240,16 +240,7 @@ fig = px.histogram(df, x="total_bill", y="tip", color="sex", marginal="rug", hov
240240
fig.show()
241241
```
242242

243-
```python
244-
import plotly.express as px
245-
df = px.data.tips()
246-
fig = px.histogram(df, x="sex", y="tip", histfunc="avg", color="smoker", barmode="group",
247-
facet_row="time", facet_col="day", category_orders={"day": ["Thur", "Fri", "Sat", "Sun"],
248-
"time": ["Lunch", "Dinner"]})
249-
fig.show()
250-
```
251-
252-
Read more about [box plots](/python/box-plots/).
243+
**Read more about [box plots](/python/box-plots/).**
253244

254245
```python
255246
import plotly.express as px
@@ -258,7 +249,7 @@ fig = px.box(df, x="day", y="total_bill", color="smoker", notched=True)
258249
fig.show()
259250
```
260251

261-
Read more about [violin plots](/python/violin/).
252+
**Read more about [violin plots](/python/violin/).**
262253

263254
```python
264255
import plotly.express as px
@@ -274,7 +265,7 @@ fig = px.strip(df, x="total_bill", y="time", orientation="h", color="smoker")
274265
fig.show()
275266
```
276267

277-
Read more about [density contours, also known as 2D histogram contours](/python/2d-histogram-contour/).
268+
**Read more about [density contours, also known as 2D histogram contours](/python/2d-histogram-contour/).**
278269

279270
```python
280271
import plotly.express as px
@@ -290,7 +281,7 @@ fig = px.density_contour(df, x="sepal_width", y="sepal_length", color="species",
290281
fig.show()
291282
```
292283

293-
Read more about [density heatmaps, also known as 2D histograms](/python/2D-Histogram/).
284+
**Read more about [density heatmaps, also known as 2D histograms](/python/2D-Histogram/).**
294285

295286
```python
296287
import plotly.express as px
@@ -301,7 +292,7 @@ fig.show()
301292

302293
### Images and Heatmaps
303294

304-
Read more about [heatmaps and images](/python/imshow/).
295+
**Read more about [heatmaps and images](/python/imshow/).**
305296

306297
```python
307298
import plotly.express as px
@@ -324,7 +315,7 @@ fig.show()
324315

325316
#### Maps
326317

327-
Read more about [tile maps](/python/mapbox-layers/) and [point](/python/scattermapbox/) and [line](/python/lines-on-mapbox/) maps.
318+
**Read more about [tile maps](/python/mapbox-layers/) and [point on tile maps](/python/scattermapbox/).**
328319

329320
```python
330321
import plotly.express as px
@@ -335,14 +326,7 @@ fig = px.scatter_mapbox(df, lat="centroid_lat", lon="centroid_lon", color="peak_
335326
fig.show()
336327
```
337328

338-
```python
339-
import plotly.express as px
340-
df = px.data.carshare()
341-
fig = px.line_mapbox(df, lat="centroid_lat", lon="centroid_lon", color="peak_hour", mapbox_style="carto-positron")
342-
fig.show()
343-
```
344-
345-
Read more about [tile map GeoJSON choropleths](/python/mapbox-county-choropleth/).
329+
**Read more about [tile map GeoJSON choropleths](/python/mapbox-county-choropleth/).**
346330

347331
```python
348332
import plotly.express as px
@@ -357,7 +341,7 @@ fig = px.choropleth_mapbox(df, geojson=geojson, color="Bergeron",
357341
fig.show()
358342
```
359343

360-
Read more about [outline map scatter](/python/scatter-plots-on-maps/) and [line plots](/python/lines-on-maps/).
344+
**Read more about [outline symbol maps](/python/scatter-plots-on-maps/).**
361345

362346
```python
363347
import plotly.express as px
@@ -367,15 +351,8 @@ fig = px.scatter_geo(df, locations="iso_alpha", color="continent", hover_name="c
367351
fig.show()
368352
```
369353

370-
```python
371-
import plotly.express as px
372-
df = px.data.gapminder()
373-
fig = px.line_geo(df.query("year==2007"), locations="iso_alpha", color="continent", projection="orthographic")
374-
fig.show()
375-
```
376-
377354

378-
Read more about [choropleth maps](/python/choropleth-maps/).
355+
**Read more about [choropleth maps](/python/choropleth-maps/).**
379356

380357
```python
381358
import plotly.express as px
@@ -387,7 +364,7 @@ fig.show()
387364

388365
#### Polar Coordinates
389366

390-
Read more about [polar plots](/python/polar-chart/).
367+
**Read more about [polar plots](/python/polar-chart/).**
391368

392369
```python
393370
import plotly.express as px
@@ -397,6 +374,8 @@ fig = px.scatter_polar(df, r="frequency", theta="direction", color="strength", s
397374
fig.show()
398375
```
399376

377+
**Read more about [radar charts](https://plotly.com/python/radar-chart/).**
378+
400379
```python
401380
import plotly.express as px
402381
df = px.data.wind()
@@ -405,7 +384,7 @@ fig = px.line_polar(df, r="frequency", theta="direction", color="strength", line
405384
fig.show()
406385
```
407386

408-
Read more about [polar bar charts](/python/wind-rose-charts/).
387+
**Read more about [polar bar charts](/python/wind-rose-charts/).**
409388

410389
```python
411390
import plotly.express as px
@@ -417,7 +396,7 @@ fig.show()
417396

418397
#### 3D Coordinates
419398

420-
Read more about [3D scatter plots](/python/3d-scatter-plots/) and [3D line plots](/python/3d-line-plots/).
399+
**Read more about [3D scatter plots](/python/3d-scatter-plots/).**
421400

422401
```python
423402
import plotly.express as px
@@ -427,16 +406,9 @@ fig = px.scatter_3d(df, x="Joly", y="Coderre", z="Bergeron", color="winner", siz
427406
fig.show()
428407
```
429408

430-
```python
431-
import plotly.express as px
432-
df = px.data.election()
433-
fig = px.line_3d(df, x="Joly", y="Coderre", z="Bergeron", color="winner", line_dash="winner")
434-
fig.show()
435-
```
436-
437409
#### Ternary Coordinates
438410

439-
Read more about [ternary charts](/python/ternary-plots/).
411+
**Read more about [ternary charts](/python/ternary-plots/).**
440412

441413
```python
442414
import plotly.express as px
@@ -445,10 +417,3 @@ fig = px.scatter_ternary(df, a="Joly", b="Coderre", c="Bergeron", color="winner"
445417
size_max=15, color_discrete_map = {"Joly": "blue", "Bergeron": "green", "Coderre":"red"} )
446418
fig.show()
447419
```
448-
449-
```python
450-
import plotly.express as px
451-
df = px.data.election()
452-
fig = px.line_ternary(df, a="Joly", b="Coderre", c="Bergeron", color="winner", line_dash="winner")
453-
fig.show()
454-
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.