@@ -78,7 +78,7 @@ The following set of figures is just a sampling of what can be done with Plotly
78
78
79
79
#### Scatter, Line, Area and Bar Charts
80
80
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/ ) .**
82
82
83
83
``` python
84
84
import plotly.express as px
@@ -87,7 +87,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
87
87
fig.show()
88
88
```
89
89
90
- Read more about [ trendlines] ( /python/linear-fits/ ) and [ templates] ( /python/templates/ ) .
90
+ ** Read more about [ trendlines] ( /python/linear-fits/ ) and [ templates] ( /python/templates/ ) .**
91
91
92
92
``` python
93
93
import plotly.express as px
@@ -97,7 +97,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", margina
97
97
fig.show()
98
98
```
99
99
100
- Read more about [ error bars] ( /python/error-bars/ ) .
100
+ ** Read more about [ error bars] ( /python/error-bars/ ) .**
101
101
102
102
``` python
103
103
import plotly.express as px
@@ -107,7 +107,7 @@ fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", error_x
107
107
fig.show()
108
108
```
109
109
110
- Read more about [ bar charts] ( /python/bar-charts/ ) .
110
+ ** Read more about [ bar charts] ( /python/bar-charts/ ) .**
111
111
112
112
``` python
113
113
import plotly.express as px
@@ -116,7 +116,7 @@ fig = px.bar(df, x="sex", y="total_bill", color="smoker", barmode="group")
116
116
fig.show()
117
117
```
118
118
119
- Read more about [ facet plots] ( /python/facet-plots/ ) .
119
+ ** Read more about [ facet plots] ( /python/facet-plots/ ) .**
120
120
121
121
``` python
122
122
import plotly.express as px
@@ -126,7 +126,7 @@ fig = px.bar(df, x="sex", y="total_bill", color="smoker", barmode="group", facet
126
126
fig.show()
127
127
```
128
128
129
- Read more about [ scatterplot matrices (SPLOMs)] ( /python/splom/ ) .
129
+ ** Read more about [ scatterplot matrices (SPLOMs)] ( /python/splom/ ) .**
130
130
131
131
132
132
``` python
@@ -136,7 +136,7 @@ fig = px.scatter_matrix(df, dimensions=["sepal_width", "sepal_length", "petal_wi
136
136
fig.show()
137
137
```
138
138
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/ ) .**
140
140
141
141
``` python
142
142
import plotly.express as px
@@ -155,7 +155,7 @@ fig = px.parallel_categories(df, color="size", color_continuous_scale=px.colors.
155
155
fig.show()
156
156
```
157
157
158
- Read more about [ hover labels] ( /python/hover-text-and-formatting/ ) .
158
+ ** Read more about [ hover labels] ( /python/hover-text-and-formatting/ ) .**
159
159
160
160
``` python
161
161
import plotly.express as px
@@ -165,7 +165,7 @@ fig = px.scatter(df.query("year==2007"), x="gdpPercap", y="lifeExp", size="pop",
165
165
fig.show()
166
166
```
167
167
168
- Read more about [ animations] ( /python/animations/ ) .
168
+ ** Read more about [ animations] ( /python/animations/ ) .**
169
169
170
170
``` python
171
171
import plotly.express as px
@@ -176,7 +176,7 @@ fig = px.scatter(df, x="gdpPercap", y="lifeExp", animation_frame="year", animati
176
176
fig.show()
177
177
```
178
178
179
- Read more about [ line charts] ( /python/line-charts/ ) .
179
+ ** Read more about [ line charts] ( /python/line-charts/ ) .**
180
180
181
181
``` python
182
182
import plotly.express as px
@@ -186,7 +186,7 @@ fig = px.line(df, x="year", y="lifeExp", color="continent", line_group="country"
186
186
fig.show()
187
187
```
188
188
189
- Read more about [ area charts] ( /python/filled-area-plots/ ) .
189
+ ** Read more about [ area charts] ( /python/filled-area-plots/ ) .**
190
190
191
191
``` python
192
192
import plotly.express as px
@@ -197,7 +197,7 @@ fig.show()
197
197
198
198
### Part to Whole Charts
199
199
200
- Read more about [ pie charts] ( /python/pie-charts/ ) .
200
+ ** Read more about [ pie charts] ( /python/pie-charts/ ) .**
201
201
202
202
``` python
203
203
import plotly.express as px
@@ -207,7 +207,7 @@ fig = px.pie(df, values='pop', names='country', title='Population of European co
207
207
fig.show()
208
208
```
209
209
210
- Read more about [ sunburst charts] ( /python/sunburst-charts/ ) .
210
+ ** Read more about [ sunburst charts] ( /python/sunburst-charts/ ) .**
211
211
212
212
``` python
213
213
import plotly.express as px
@@ -218,7 +218,7 @@ fig = px.sunburst(df, path=['continent', 'country'], values='pop',
218
218
fig.show()
219
219
```
220
220
221
- Read more about [ treemaps] ( /python/treemaps/ ) .
221
+ ** Read more about [ treemaps] ( /python/treemaps/ ) .**
222
222
223
223
``` python
224
224
import plotly.express as px
@@ -231,7 +231,7 @@ fig.show()
231
231
232
232
#### Distributions
233
233
234
- Read more about [ histograms] ( /python/histograms/ ) .
234
+ ** Read more about [ histograms] ( /python/histograms/ ) .**
235
235
236
236
``` python
237
237
import plotly.express as px
@@ -240,16 +240,7 @@ fig = px.histogram(df, x="total_bill", y="tip", color="sex", marginal="rug", hov
240
240
fig.show()
241
241
```
242
242
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/ ) .**
253
244
254
245
``` python
255
246
import plotly.express as px
@@ -258,7 +249,7 @@ fig = px.box(df, x="day", y="total_bill", color="smoker", notched=True)
258
249
fig.show()
259
250
```
260
251
261
- Read more about [ violin plots] ( /python/violin/ ) .
252
+ ** Read more about [ violin plots] ( /python/violin/ ) .**
262
253
263
254
``` python
264
255
import plotly.express as px
@@ -274,7 +265,7 @@ fig = px.strip(df, x="total_bill", y="time", orientation="h", color="smoker")
274
265
fig.show()
275
266
```
276
267
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/ ) .**
278
269
279
270
``` python
280
271
import plotly.express as px
@@ -290,7 +281,7 @@ fig = px.density_contour(df, x="sepal_width", y="sepal_length", color="species",
290
281
fig.show()
291
282
```
292
283
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/ ) .**
294
285
295
286
``` python
296
287
import plotly.express as px
@@ -301,7 +292,7 @@ fig.show()
301
292
302
293
### Images and Heatmaps
303
294
304
- Read more about [ heatmaps and images] ( /python/imshow/ ) .
295
+ ** Read more about [ heatmaps and images] ( /python/imshow/ ) .**
305
296
306
297
``` python
307
298
import plotly.express as px
@@ -324,7 +315,7 @@ fig.show()
324
315
325
316
#### Maps
326
317
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/ ) . **
328
319
329
320
``` python
330
321
import plotly.express as px
@@ -335,14 +326,7 @@ fig = px.scatter_mapbox(df, lat="centroid_lat", lon="centroid_lon", color="peak_
335
326
fig.show()
336
327
```
337
328
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/ ) .**
346
330
347
331
``` python
348
332
import plotly.express as px
@@ -357,7 +341,7 @@ fig = px.choropleth_mapbox(df, geojson=geojson, color="Bergeron",
357
341
fig.show()
358
342
```
359
343
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/ ) . **
361
345
362
346
``` python
363
347
import plotly.express as px
@@ -367,15 +351,8 @@ fig = px.scatter_geo(df, locations="iso_alpha", color="continent", hover_name="c
367
351
fig.show()
368
352
```
369
353
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
-
377
354
378
- Read more about [ choropleth maps] ( /python/choropleth-maps/ ) .
355
+ ** Read more about [ choropleth maps] ( /python/choropleth-maps/ ) .**
379
356
380
357
``` python
381
358
import plotly.express as px
@@ -387,7 +364,7 @@ fig.show()
387
364
388
365
#### Polar Coordinates
389
366
390
- Read more about [ polar plots] ( /python/polar-chart/ ) .
367
+ ** Read more about [ polar plots] ( /python/polar-chart/ ) .**
391
368
392
369
``` python
393
370
import plotly.express as px
@@ -397,6 +374,8 @@ fig = px.scatter_polar(df, r="frequency", theta="direction", color="strength", s
397
374
fig.show()
398
375
```
399
376
377
+ ** Read more about [ radar charts] ( https://plotly.com/python/radar-chart/ ) .**
378
+
400
379
``` python
401
380
import plotly.express as px
402
381
df = px.data.wind()
@@ -405,7 +384,7 @@ fig = px.line_polar(df, r="frequency", theta="direction", color="strength", line
405
384
fig.show()
406
385
```
407
386
408
- Read more about [ polar bar charts] ( /python/wind-rose-charts/ ) .
387
+ ** Read more about [ polar bar charts] ( /python/wind-rose-charts/ ) .**
409
388
410
389
``` python
411
390
import plotly.express as px
@@ -417,7 +396,7 @@ fig.show()
417
396
418
397
#### 3D Coordinates
419
398
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/ ) . **
421
400
422
401
``` python
423
402
import plotly.express as px
@@ -427,16 +406,9 @@ fig = px.scatter_3d(df, x="Joly", y="Coderre", z="Bergeron", color="winner", siz
427
406
fig.show()
428
407
```
429
408
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
-
437
409
#### Ternary Coordinates
438
410
439
- Read more about [ ternary charts] ( /python/ternary-plots/ ) .
411
+ ** Read more about [ ternary charts] ( /python/ternary-plots/ ) .**
440
412
441
413
``` python
442
414
import plotly.express as px
@@ -445,10 +417,3 @@ fig = px.scatter_ternary(df, a="Joly", b="Coderre", c="Bergeron", color="winner"
445
417
size_max = 15 , color_discrete_map = {" Joly" : " blue" , " Bergeron" : " green" , " Coderre" :" red" } )
446
418
fig.show()
447
419
```
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