-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplotly.express.density_heatmap.html
More file actions
270 lines (239 loc) · 27 KB
/
plotly.express.density_heatmap.html
File metadata and controls
270 lines (239 loc) · 27 KB
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>plotly.express.density_heatmap — 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.density_mapbox" href="plotly.express.density_mapbox.html" />
<link rel="prev" title="plotly.express.density_contour" href="plotly.express.density_contour.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="reference internal" href="../plotly.express.html"><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="xref py py-mod docutils literal notranslate"><span class="pre">plotly.express</span></code>.density_heatmap</a></li>
</ul>
</ul>
</li>
<li>
<a href="plotly.express.density_contour.html" title="Previous Chapter: plotly.express.density_contour"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">« plotly.expres...</span>
</a>
</li>
<li>
<a href="plotly.express.density_mapbox.html" title="Next Chapter: plotly.express.density_mapbox"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">plotly.expres... »</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-density-heatmap">
<h1><a class="reference internal" href="plotly.express.html#module-plotly.express" title="plotly.express"><code class="xref py py-mod docutils literal notranslate"><span class="pre">plotly.express</span></code></a>.density_heatmap<a class="headerlink" href="#plotly-express-density-heatmap" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="plotly.express.density_heatmap">
<code class="sig-prename descclassname">plotly.express.</code><code class="sig-name descname">density_heatmap</code><span class="sig-paren">(</span><em class="sig-param">data_frame=None</em>, <em class="sig-param">x=None</em>, <em class="sig-param">y=None</em>, <em class="sig-param">z=None</em>, <em class="sig-param">facet_row=None</em>, <em class="sig-param">facet_col=None</em>, <em class="sig-param">facet_col_wrap=0</em>, <em class="sig-param">hover_name=None</em>, <em class="sig-param">hover_data=None</em>, <em class="sig-param">animation_frame=None</em>, <em class="sig-param">animation_group=None</em>, <em class="sig-param">category_orders={}</em>, <em class="sig-param">labels={}</em>, <em class="sig-param">color_continuous_scale=None</em>, <em class="sig-param">range_color=None</em>, <em class="sig-param">color_continuous_midpoint=None</em>, <em class="sig-param">marginal_x=None</em>, <em class="sig-param">marginal_y=None</em>, <em class="sig-param">opacity=None</em>, <em class="sig-param">log_x=False</em>, <em class="sig-param">log_y=False</em>, <em class="sig-param">range_x=None</em>, <em class="sig-param">range_y=None</em>, <em class="sig-param">histfunc=None</em>, <em class="sig-param">histnorm=None</em>, <em class="sig-param">nbinsx=None</em>, <em class="sig-param">nbinsy=None</em>, <em class="sig-param">title=None</em>, <em class="sig-param">template=None</em>, <em class="sig-param">width=None</em>, <em class="sig-param">height=None</em><span class="sig-paren">)</span><a class="headerlink" href="#plotly.express.density_heatmap" title="Permalink to this definition">¶</a></dt>
<dd><blockquote>
<div><p>In a density heatmap, rows of <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> are grouped together into
colored rectangular tiles to visualize the 2D distribution of an
aggregate function <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> (e.g. the count or sum) of the value <code class="docutils literal notranslate"><span class="pre">z</span></code>.</p>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>data_frame</strong> (<em>DataFrame</em><em> or </em><em>array-like</em><em> or </em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.8)"><em>dict</em></a>) – This argument needs to be passed for column names (and not keyword
names) to be used. Array-like and dict are tranformed internally to a
pandas DataFrame. Optional: if missing, a DataFrame gets constructed
under the hood using the other arguments.</p></li>
<li><p><strong>x</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
position marks along the x axis in cartesian coordinates. For
horizontal histograms, these values are used as inputs to <code class="docutils literal notranslate"><span class="pre">histfunc</span></code>.</p></li>
<li><p><strong>y</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
position marks along the y axis in cartesian coordinates. For vertical
histograms, these values are used as inputs to <code class="docutils literal notranslate"><span class="pre">histfunc</span></code>.</p></li>
<li><p><strong>z</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
position marks along the z axis in cartesian coordinates. For
<code class="docutils literal notranslate"><span class="pre">density_heatmap</span></code> and <code class="docutils literal notranslate"><span class="pre">density_contour</span></code> these values are used as the
inputs to <code class="docutils literal notranslate"><span class="pre">histfunc</span></code>.</p></li>
<li><p><strong>facet_row</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
assign marks to facetted subplots in the vertical direction.</p></li>
<li><p><strong>facet_col</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
assign marks to facetted subplots in the horizontal direction.</p></li>
<li><p><strong>facet_col_wrap</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Maximum number of facet columns. Wraps the column variable at this
width, so that the column facets span multiple rows. Ignored if 0, and
forced to 0 if <code class="docutils literal notranslate"><span class="pre">facet_row</span></code> or a <code class="docutils literal notranslate"><span class="pre">marginal</span></code> is set.</p></li>
<li><p><strong>hover_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like appear in bold
in the hover tooltip.</p></li>
<li><p><strong>hover_data</strong> (<em>list of str</em><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, or </em><em>Series</em><em> or </em><em>array-like</em><em>, or </em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.8)"><em>dict</em></a>) – Either a list of names of columns in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or pandas Series, or
array_like objects or a dict with column names as keys, with values
True (for default formatting) False (in order to remove this column
from hover information), or a formatting string, for example ‘:.3f’ or
‘<a href="#id1"><span class="problematic" id="id2">|</span></a>%a’ or list-like data to appear in the hover tooltip or tuples with a
bool or formatting string as first element, and list-like data to
appear in hover as second element Values from these columns appear as
extra data in the hover tooltip.</p></li>
<li><p><strong>animation_frame</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
assign marks to animation frames.</p></li>
<li><p><strong>animation_group</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>Series</em><em> or </em><em>array-like</em>) – Either a name of a column in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code>, or a pandas Series or
array_like object. Values from this column or array_like are used to
provide object-constancy across animation frames: rows with matching
<a href="#id3"><span class="problematic" id="id4">`</span></a>animation_group`s will be treated as if they describe the same object
in each frame.</p></li>
<li><p><strong>category_orders</strong> (dict with str keys and list of str values (default <code class="docutils literal notranslate"><span class="pre">{}</span></code>)) – By default, in Python 3.6+, the order of categorical values in axes,
legends and facets depends on the order in which these values are first
encountered in <code class="docutils literal notranslate"><span class="pre">data_frame</span></code> (and no order is guaranteed by default in
Python below 3.6). This parameter is used to force a specific ordering
of values per column. The keys of this dict should correspond to column
names, and the values should be lists of strings corresponding to the
specific display order desired.</p></li>
<li><p><strong>labels</strong> (dict with str keys and str values (default <code class="docutils literal notranslate"><span class="pre">{}</span></code>)) – By default, column names are used in the figure for axis titles, legend
entries and hovers. This parameter allows this to be overridden. The
keys of this dict should correspond to column names, and the values
should correspond to the desired label to be displayed.</p></li>
<li><p><strong>color_continuous_scale</strong> (<em>list of str</em>) – Strings should define valid CSS-colors This list is used to build a
continuous color scale when the column denoted by <code class="docutils literal notranslate"><span class="pre">color</span></code> contains
numeric data. Various useful color scales are available in the
<code class="docutils literal notranslate"><span class="pre">plotly.express.colors</span></code> submodules, specifically
<code class="docutils literal notranslate"><span class="pre">plotly.express.colors.sequential</span></code>, <code class="docutils literal notranslate"><span class="pre">plotly.express.colors.diverging</span></code>
and <code class="docutils literal notranslate"><span class="pre">plotly.express.colors.cyclical</span></code>.</p></li>
<li><p><strong>range_color</strong> (<em>list of two numbers</em>) – If provided, overrides auto-scaling on the continuous color scale.</p></li>
<li><p><strong>color_continuous_midpoint</strong> (number (default <code class="docutils literal notranslate"><span class="pre">None</span></code>)) – If set, computes the bounds of the continuous color scale to have the
desired midpoint. Setting this value is recommended when using
<code class="docutils literal notranslate"><span class="pre">plotly.express.colors.diverging</span></code> color scales as the inputs to
<code class="docutils literal notranslate"><span class="pre">color_continuous_scale</span></code>.</p></li>
<li><p><strong>marginal_x</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – One of <code class="docutils literal notranslate"><span class="pre">'rug'</span></code>, <code class="docutils literal notranslate"><span class="pre">'box'</span></code>, <code class="docutils literal notranslate"><span class="pre">'violin'</span></code>, or <code class="docutils literal notranslate"><span class="pre">'histogram'</span></code>. If set, a
horizontal subplot is drawn above the main plot, visualizing the
x-distribution.</p></li>
<li><p><strong>marginal_y</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – One of <code class="docutils literal notranslate"><span class="pre">'rug'</span></code>, <code class="docutils literal notranslate"><span class="pre">'box'</span></code>, <code class="docutils literal notranslate"><span class="pre">'violin'</span></code>, or <code class="docutils literal notranslate"><span class="pre">'histogram'</span></code>. If set, a
vertical subplot is drawn to the right of the main plot, visualizing
the y-distribution.</p></li>
<li><p><strong>opacity</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – Value between 0 and 1. Sets the opacity for markers.</p></li>
<li><p><strong>log_x</strong> (boolean (default <code class="docutils literal notranslate"><span class="pre">False</span></code>)) – If <code class="docutils literal notranslate"><span class="pre">True</span></code>, the x-axis is log-scaled in cartesian coordinates.</p></li>
<li><p><strong>log_y</strong> (boolean (default <code class="docutils literal notranslate"><span class="pre">False</span></code>)) – If <code class="docutils literal notranslate"><span class="pre">True</span></code>, the y-axis is log-scaled in cartesian coordinates.</p></li>
<li><p><strong>range_x</strong> (<em>list of two numbers</em>) – If provided, overrides auto-scaling on the x-axis in cartesian
coordinates.</p></li>
<li><p><strong>range_y</strong> (<em>list of two numbers</em>) – If provided, overrides auto-scaling on the y-axis in cartesian
coordinates.</p></li>
<li><p><strong>histfunc</strong> (str (default <code class="docutils literal notranslate"><span class="pre">'count'</span></code>)) – One of <code class="docutils literal notranslate"><span class="pre">'count'</span></code>, <code class="docutils literal notranslate"><span class="pre">'sum'</span></code>, <code class="docutils literal notranslate"><span class="pre">'avg'</span></code>, <code class="docutils literal notranslate"><span class="pre">'min'</span></code>, or <code class="docutils literal notranslate"><span class="pre">'max'</span></code>.Function used
to aggregate values for summarization (note: can be normalized with
<code class="docutils literal notranslate"><span class="pre">histnorm</span></code>). The arguments to this function for <code class="docutils literal notranslate"><span class="pre">histogram</span></code> are the
values of <code class="docutils literal notranslate"><span class="pre">y</span></code> if <code class="docutils literal notranslate"><span class="pre">orientation</span></code> is <code class="docutils literal notranslate"><span class="pre">'v'</span></code>, otherwise the arguements are
the values of <code class="docutils literal notranslate"><span class="pre">x</span></code>. The arguments to this function for <code class="docutils literal notranslate"><span class="pre">density_heatmap</span></code>
and <code class="docutils literal notranslate"><span class="pre">density_contour</span></code> are the values of <code class="docutils literal notranslate"><span class="pre">z</span></code>.</p></li>
<li><p><strong>histnorm</strong> (str (default <code class="docutils literal notranslate"><span class="pre">None</span></code>)) – One of <code class="docutils literal notranslate"><span class="pre">'percent'</span></code>, <code class="docutils literal notranslate"><span class="pre">'probability'</span></code>, <code class="docutils literal notranslate"><span class="pre">'density'</span></code>, or <code class="docutils literal notranslate"><span class="pre">'probability</span>
<span class="pre">density'</span></code> If <code class="docutils literal notranslate"><span class="pre">None</span></code>, the output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> is used as is. If
<code class="docutils literal notranslate"><span class="pre">'probability'</span></code>, the output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> for a given bin is divided by
the sum of the output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> for all bins. If <code class="docutils literal notranslate"><span class="pre">'percent'</span></code>, the
output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> for a given bin is divided by the sum of the
output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> for all bins and multiplied by 100. If
<code class="docutils literal notranslate"><span class="pre">'density'</span></code>, the output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> for a given bin is divided by the
size of the bin. If <code class="docutils literal notranslate"><span class="pre">'probability</span> <span class="pre">density'</span></code>, the output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code>
for a given bin is normalized such that it corresponds to the
probability that a random event whose distribution is described by the
output of <code class="docutils literal notranslate"><span class="pre">histfunc</span></code> will fall into that bin.</p></li>
<li><p><strong>nbinsx</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Positive integer. Sets the number of bins along the x axis.</p></li>
<li><p><strong>nbinsy</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Positive integer. Sets the number of bins along the y axis.</p></li>
<li><p><strong>title</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The figure title.</p></li>
<li><p><strong>template</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.8)"><em>dict</em></a><em> or </em><em>plotly.graph_objects.layout.Template instance</em>) – The figure template name (must be a key in plotly.io.templates) or
definition.</p></li>
<li><p><strong>width</strong> (int (default <code class="docutils literal notranslate"><span class="pre">None</span></code>)) – The figure width in pixels.</p></li>
<li><p><strong>height</strong> (int (default <code class="docutils literal notranslate"><span class="pre">None</span></code>)) – The figure height in pixels.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p></p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="reference internal" href="plotly.graph_objects.html#plotly.graph_objects.Figure" title="plotly.graph_objects.Figure">plotly.graph_objects.Figure</a></p>
</dd>
</dl>
</dd></dl>
<div class="clearer"></div></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>