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

Latest commit

 

History

History
History
256 lines (226 loc) · 22.4 KB

File metadata and controls

256 lines (226 loc) · 22.4 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>plotly.express: high-level interface for data visualization &#8212; 4.6.0 documentation</title>
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/plotly-style.css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<link rel="shortcut icon" href="_static/favicon.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="plotly.express.scatter" href="generated/plotly.express.scatter.html" />
<link rel="prev" title="Python API reference for plotly" href="index.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="_static/js/jquery-1.11.0.min.js "></script>
<script type="text/javascript" src="_static/js/jquery-fix.js "></script>
<script type="text/javascript" src="_static/bootstrap-3.3.7/js/bootstrap.min.js "></script>
<script type="text/javascript" src="_static/bootstrap-sphinx.js "></script>
</head><body>
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><span><img src="_static/logo.png"></span>
</a>
<span class="navbar-text navbar-version pull-left"><b></b></span>
</div>
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li class="dropdown globaltoc-container">
<a role="button"
id="dLabelGlobalToc"
data-toggle="dropdown"
data-target="#"
href="index.html">Site <b class="caret"></b></a>
<ul class="dropdown-menu globaltoc"
role="menu"
aria-labelledby="dLabelGlobalToc"><ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#"><code class="docutils literal notranslate"><span class="pre">plotly.express</span></code>: high-level interface for data visualization</a></li>
<li class="toctree-l1"><a class="reference internal" href="plotly.graph_objects.html"><code class="docutils literal notranslate"><span class="pre">plotly.graph_objects</span></code>: low-level interface to figures, traces and layout</a></li>
<li class="toctree-l1"><a class="reference internal" href="plotly.subplots.html"><code class="docutils literal notranslate"><span class="pre">plotly.subplots</span></code>: helper function for laying out multi-plot figures</a></li>
<li class="toctree-l1"><a class="reference internal" href="plotly.figure_factory.html"><code class="docutils literal notranslate"><span class="pre">plotly.figure_factory</span></code>: helper methods for building specific complex charts</a></li>
<li class="toctree-l1"><a class="reference internal" href="plotly.io.html"><code class="docutils literal notranslate"><span class="pre">plotly.io</span></code>: low-level interface for displaying, reading and writing figures</a></li>
</ul>
</ul>
</li>
<li class="dropdown">
<a role="button"
id="dLabelLocalToc"
data-toggle="dropdown"
data-target="#"
href="#">Page <b class="caret"></b></a>
<ul class="dropdown-menu localtoc"
role="menu"
aria-labelledby="dLabelLocalToc"><ul>
<li><a class="reference internal" href="#"><code class="docutils literal notranslate"><span class="pre">plotly.express</span></code>: high-level interface for data visualization</a></li>
</ul>
</ul>
</li>
<li>
<a href="index.html" title="Previous Chapter: Python API reference for plotly"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; Python API re...</span>
</a>
</li>
<li>
<a href="generated/plotly.express.scatter.html" title="Next Chapter: plotly.express.scatter"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">plotly.expres... &raquo;</span>
</a>
</li>
</ul>
<form class="navbar-form navbar-right" action="search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="body col-md-12 content" role="main">
<div class="section" id="plotly-express-high-level-interface-for-data-visualization">
<span id="px"></span><h1><code class="docutils literal notranslate"><span class="pre">plotly.express</span></code>: high-level interface for data visualization<a class="headerlink" href="#plotly-express-high-level-interface-for-data-visualization" title="Permalink to this headline"></a></h1>
<p>The <a class="reference external" href="https://plot.ly/python/plotly-express/">plotly.express</a> module is
plotly’s high-level API for rapid figure generation.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">plotly.express</span> <span class="k">as</span> <span class="nn">px</span>
</pre></div>
</div>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.scatter.html#plotly.express.scatter" title="plotly.express.scatter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter</span></code></a>([data_frame, x, y, color, symbol, …])</p></td>
<td><p>In a scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a symbol</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.scatter_3d.html#plotly.express.scatter_3d" title="plotly.express.scatter_3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_3d</span></code></a>([data_frame, x, y, z, color, …])</p></td>
<td><p>In a 3D scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.scatter_polar.html#plotly.express.scatter_polar" title="plotly.express.scatter_polar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_polar</span></code></a>([data_frame, r, theta, color, …])</p></td>
<td><p>In a polar scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.scatter_ternary.html#plotly.express.scatter_ternary" title="plotly.express.scatter_ternary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_ternary</span></code></a>([data_frame, a, b, c, …])</p></td>
<td><p>In a ternary scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.scatter_mapbox.html#plotly.express.scatter_mapbox" title="plotly.express.scatter_mapbox"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_mapbox</span></code></a>([data_frame, lat, lon, …])</p></td>
<td><p>In a Mapbox scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.scatter_geo.html#plotly.express.scatter_geo" title="plotly.express.scatter_geo"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_geo</span></code></a>([data_frame, lat, lon, …])</p></td>
<td><p>In a geographic scatter plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.line.html#plotly.express.line" title="plotly.express.line"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line</span></code></a>([data_frame, x, y, line_group, color, …])</p></td>
<td><p>In a 2D line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as vertex of</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.line_3d.html#plotly.express.line_3d" title="plotly.express.line_3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line_3d</span></code></a>([data_frame, x, y, z, color, …])</p></td>
<td><p>In a 3D line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as vertex of</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.line_polar.html#plotly.express.line_polar" title="plotly.express.line_polar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line_polar</span></code></a>([data_frame, r, theta, color, …])</p></td>
<td><p>In a polar line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as vertex</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.line_ternary.html#plotly.express.line_ternary" title="plotly.express.line_ternary"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line_ternary</span></code></a>([data_frame, a, b, c, color, …])</p></td>
<td><p>In a ternary line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.line_mapbox.html#plotly.express.line_mapbox" title="plotly.express.line_mapbox"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line_mapbox</span></code></a>([data_frame, lat, lon, color, …])</p></td>
<td><p>In a Mapbox line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.line_geo.html#plotly.express.line_geo" title="plotly.express.line_geo"><code class="xref py py-obj docutils literal notranslate"><span class="pre">line_geo</span></code></a>([data_frame, lat, lon, locations, …])</p></td>
<td><p>In a geographic line plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.area.html#plotly.express.area" title="plotly.express.area"><code class="xref py py-obj docutils literal notranslate"><span class="pre">area</span></code></a>([data_frame, x, y, line_group, color, …])</p></td>
<td><p>In a stacked area plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.bar.html#plotly.express.bar" title="plotly.express.bar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bar</span></code></a>([data_frame, x, y, color, facet_row, …])</p></td>
<td><p>In a bar plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a rectangular</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.bar_polar.html#plotly.express.bar_polar" title="plotly.express.bar_polar"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bar_polar</span></code></a>([data_frame, r, theta, color, …])</p></td>
<td><p>In a polar bar plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a wedge</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.violin.html#plotly.express.violin" title="plotly.express.violin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">violin</span></code></a>([data_frame, x, y, color, facet_row, …])</p></td>
<td><p>In a violin plot, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together into a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.box.html#plotly.express.box" title="plotly.express.box"><code class="xref py py-obj docutils literal notranslate"><span class="pre">box</span></code></a>([data_frame, x, y, color, facet_row, …])</p></td>
<td><p>In a box plot, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together into a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.strip.html#plotly.express.strip" title="plotly.express.strip"><code class="xref py py-obj docutils literal notranslate"><span class="pre">strip</span></code></a>([data_frame, x, y, color, facet_row, …])</p></td>
<td><p>In a strip plot each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a jittered</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.histogram.html#plotly.express.histogram" title="plotly.express.histogram"><code class="xref py py-obj docutils literal notranslate"><span class="pre">histogram</span></code></a>([data_frame, x, y, color, …])</p></td>
<td><p>In a histogram, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together into a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.pie.html#plotly.express.pie" title="plotly.express.pie"><code class="xref py py-obj docutils literal notranslate"><span class="pre">pie</span></code></a>([data_frame, names, values, color, …])</p></td>
<td><p>In a pie plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a sector of a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.treemap.html#plotly.express.treemap" title="plotly.express.treemap"><code class="xref py py-obj docutils literal notranslate"><span class="pre">treemap</span></code></a>([data_frame, names, values, …])</p></td>
<td><p>A treemap plot represents hierarchial data as nested rectangular</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.sunburst.html#plotly.express.sunburst" title="plotly.express.sunburst"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sunburst</span></code></a>([data_frame, names, values, …])</p></td>
<td><p>A sunburst plot represents hierarchial data as sectors laid out over</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.funnel.html#plotly.express.funnel" title="plotly.express.funnel"><code class="xref py py-obj docutils literal notranslate"><span class="pre">funnel</span></code></a>([data_frame, x, y, color, facet_row, …])</p></td>
<td><p>In a funnel plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.funnel_area.html#plotly.express.funnel_area" title="plotly.express.funnel_area"><code class="xref py py-obj docutils literal notranslate"><span class="pre">funnel_area</span></code></a>([data_frame, names, values, …])</p></td>
<td><p>In a funnel area plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented as a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.scatter_matrix.html#plotly.express.scatter_matrix" title="plotly.express.scatter_matrix"><code class="xref py py-obj docutils literal notranslate"><span class="pre">scatter_matrix</span></code></a>([data_frame, dimensions, …])</p></td>
<td><p>In a scatter plot matrix (or SPLOM), each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.parallel_coordinates.html#plotly.express.parallel_coordinates" title="plotly.express.parallel_coordinates"><code class="xref py py-obj docutils literal notranslate"><span class="pre">parallel_coordinates</span></code></a>([data_frame, …])</p></td>
<td><p>In a parallel coordinates plot, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.parallel_categories.html#plotly.express.parallel_categories" title="plotly.express.parallel_categories"><code class="xref py py-obj docutils literal notranslate"><span class="pre">parallel_categories</span></code></a>([data_frame, …])</p></td>
<td><p>In a parallel categories (or parallel sets) plot, each row of</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.choropleth.html#plotly.express.choropleth" title="plotly.express.choropleth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">choropleth</span></code></a>([data_frame, lat, lon, …])</p></td>
<td><p>In a choropleth map, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.choropleth_mapbox.html#plotly.express.choropleth_mapbox" title="plotly.express.choropleth_mapbox"><code class="xref py py-obj docutils literal notranslate"><span class="pre">choropleth_mapbox</span></code></a>([data_frame, geojson, …])</p></td>
<td><p>In a Mapbox choropleth map, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> is represented by a</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.density_contour.html#plotly.express.density_contour" title="plotly.express.density_contour"><code class="xref py py-obj docutils literal notranslate"><span class="pre">density_contour</span></code></a>([data_frame, x, y, z, …])</p></td>
<td><p>In a density contour plot, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.density_heatmap.html#plotly.express.density_heatmap" title="plotly.express.density_heatmap"><code class="xref py py-obj docutils literal notranslate"><span class="pre">density_heatmap</span></code></a>([data_frame, x, y, z, …])</p></td>
<td><p>In a density heatmap, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together into</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/plotly.express.density_mapbox.html#plotly.express.density_mapbox" title="plotly.express.density_mapbox"><code class="xref py py-obj docutils literal notranslate"><span class="pre">density_mapbox</span></code></a>([data_frame, lat, lon, z, …])</p></td>
<td><p>In a Mapbox density map, each row of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> contributes to the intensity of</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/plotly.express.imshow.html#plotly.express.imshow" title="plotly.express.imshow"><code class="xref py py-obj docutils literal notranslate"><span class="pre">imshow</span></code></a>(img[, zmin, zmax, origin, labels, x, …])</p></td>
<td><p>Display an image, i.e.</p></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39373211-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.