You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/python/box-plots.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ jupyter:
39
39
A [box plot](https://en.wikipedia.org/wiki/Box_plot) is a statistical representation of numerical data through their quartiles. The ends of the box represent the lower and upper quartiles, while the median (second quartile) is marked by a line inside the box. For other statistical representations of numerical data, see [other statistical charts](https://plot.ly/python/statistical-charts/).
40
40
41
41
42
-
## Box Plot with Plotly Express
42
+
## Box Plot with `plotly.express`
43
43
44
44
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/).
Copy file name to clipboardExpand all lines: doc/python/funnel-charts.md
+59-11Lines changed: 59 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,27 @@
1
1
---
2
2
jupyter:
3
3
jupytext:
4
+
notebook_metadata_filter: plotly
4
5
text_representation:
5
6
extension: .md
6
7
format_name: markdown
7
-
format_version: '1.1'
8
-
jupytext_version: 1.1.1
8
+
format_version: '1.2'
9
+
jupytext_version: 1.3.0
9
10
kernelspec:
10
11
display_name: Python 3
11
12
language: python
12
13
name: python3
13
14
plotly:
14
-
permalink: python/funnel-charts/
15
-
redirect_from: python/funnel-chart/
16
15
description: How to make funnel-chart plots in Python with Plotly.
17
-
name: Funnel Chart
18
-
thumbnail: thumbnail/funnel.jpg
19
-
language: python
20
16
display_as: financial
21
-
order: 4
17
+
language: python
22
18
layout: base
19
+
name: Funnel Chart
20
+
order: 4
23
21
page_type: example_index
22
+
permalink: python/funnel-charts/
23
+
redirect_from: python/funnel-chart/
24
+
thumbnail: thumbnail/funnel.jpg
24
25
---
25
26
26
27
@@ -29,7 +30,40 @@ jupyter:
29
30
Funnel charts are often used to represent data in different stages of a business process. It’s an important mechanism in Business Intelligence to identify potential problem areas of a process. For example, it’s used to observe the revenue or loss in a sales process for each stage, and displays values that are decreasing progressively. Each stage is illustrated as a percentage of the total of all values.
30
31
31
32
32
-
### Basic Funnel Plot
33
+
### Basic Funnel Plot with plotly.express
34
+
35
+
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/).
36
+
37
+
With `px.funnel`, each row of the DataFrame is represented as a stage of the funnel.
### Basic Funnel Chart with graph_objects trace go.Funnel
65
+
66
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Funnel` function from `plotly.graph_objects`.
33
67
34
68
```python
35
69
from plotly import graph_objects as go
@@ -60,7 +94,7 @@ fig = go.Figure(go.Funnel(
60
94
fig.show()
61
95
```
62
96
63
-
### Stacked Funnel Plot
97
+
### Stacked Funnel Plot with go.Funnel
64
98
65
99
```python
66
100
from plotly import graph_objects as go
@@ -92,7 +126,21 @@ fig.add_trace(go.Funnel(
92
126
fig.show()
93
127
```
94
128
95
-
#### Basic Area Funnel Plot
129
+
### Basic Area Funnel Plot with plotly.express
130
+
131
+
With `px.funnel_area`, each row of the DataFrame is represented as a stage of
132
+
the funnel.
133
+
134
+
```python
135
+
import plotly.express as px
136
+
fig = px.funnel_area(names=["The 1st","The 2nd", "The 3rd", "The 4th", "The 5th"],
137
+
values=[5, 4, 3, 2, 1])
138
+
fig.show()
139
+
```
140
+
141
+
### Basic Area Funnel Plot with go.Funnelarea
142
+
143
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Funnelarea` function from `plotly.graph_objects`.
Copy file name to clipboardExpand all lines: doc/python/heatmaps.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ jupyter:
5
5
text_representation:
6
6
extension: .md
7
7
format_name: markdown
8
-
format_version: '1.1'
9
-
jupytext_version: 1.1.1
8
+
format_version: '1.2'
9
+
jupytext_version: 1.3.0
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.6.7
23
+
version: 3.7.3
24
24
plotly:
25
25
description: How to make Heatmaps in Python with Plotly.
26
26
display_as: scientific
@@ -34,7 +34,26 @@ jupyter:
34
34
thumbnail: thumbnail/heatmap.jpg
35
35
---
36
36
37
-
### Basic Heatmap
37
+
### Heatmap with `plotly.express` and `px.imshow`
38
+
39
+
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly. With `px.imshow`, each value of the input array is represented as a heatmap pixel.
40
+
41
+
`px.imshow` makes opiniated choices for representing heatmaps, such as using square pixels. To override this behaviour, you can use `fig.update_layout` or use the `go.Heatmap` trace from `plotly.graph_objects` as described below.
42
+
43
+
For more examples using `px.imshow`, see the [tutorial on displaying image data with plotly](/python/imshow).
44
+
45
+
```python
46
+
import plotly.express as px
47
+
48
+
fig = px.imshow([[1, 20, 30],
49
+
[20, 1, 60],
50
+
[30, 60, 1]])
51
+
fig.show()
52
+
```
53
+
54
+
### Basic Heatmap with `plotly.graph_objects`
55
+
56
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Heatmap` function from `plotly.graph_objects`.
Copy file name to clipboardExpand all lines: doc/python/mapbox-county-choropleth.md
+39-5Lines changed: 39 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ jupyter:
5
5
text_representation:
6
6
extension: .md
7
7
format_name: markdown
8
-
format_version: '1.1'
9
-
jupytext_version: 1.1.1
8
+
format_version: '1.2'
9
+
jupytext_version: 1.3.0
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.6.8
23
+
version: 3.7.3
24
24
plotly:
25
25
description: How to make a Mapbox Choropleth Map of US Counties in Python with
26
26
Plotly.
@@ -40,7 +40,9 @@ jupyter:
40
40
To plot on Mapbox maps with Plotly you *may* need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.
41
41
42
42
43
-
Making choropleth maps with `go.Choroplethmapbox` requires two main types of input: GeoJSON-formatted geometry information *where each `feature` has an `id`* and a list of values indexed by feature id. The GeoJSON data is passed to the `geojson` attribute, and the data is passed into the `z` attribute, in the same order as the IDs are passed into the `location` attribute.
43
+
### Introduction: main parameters for choropleth mapbox charts
44
+
45
+
Making choropleth maps requires two main types of input: GeoJSON-formatted geometry information *where each `feature` has an `id`* and a list of values indexed by feature id. The GeoJSON data is passed to the `geojson` attribute, and the data is passed into the `z` (`color` for `px.choropleth_mapbox`) attribute, in the same order as the IDs are passed into the `location` attribute.
### Choropleth map using plotly.graph_objects and carto base map (no token needed)
103
+
104
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Choroplethmapbox` function from `plotly.graph_objects`.
### Stamen Terrain base map (no token needed): density mapbox with `plotly.graph_objects`
62
+
63
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Densitymapbox` function from `plotly.graph_objects`.
0 commit comments