Skip to content

Commit 1a75b82

Browse files
committed
0 parents  commit 1a75b82

File tree

383 files changed

+166419
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+166419
-0
lines changed

2019-07-03-2D-Histogram.html

Lines changed: 937 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-2d-histogram-contour.html

Lines changed: 799 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-axes.html

Lines changed: 699 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-bubble-charts.html

Lines changed: 479 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-camera-controls.html

Lines changed: 846 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-isosurface-plots.html

Lines changed: 728 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-line-plots.html

Lines changed: 317 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-mesh.html

Lines changed: 535 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-scatter-plots.html

Lines changed: 488 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-subplots.html

Lines changed: 178 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-surface-plots.html

Lines changed: 586 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-3d-volume.html

Lines changed: 731 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-LaTeX.html

Lines changed: 205 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-animations.html

Lines changed: 818 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-annotated-heatmap.html

Lines changed: 762 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-axes.html

Lines changed: 3807 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bar-charts.html

Lines changed: 3102 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bio-alignment-chart.html

Lines changed: 172 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bio-clustergram.html

Lines changed: 334 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bio-manhattanplot.html

Lines changed: 246 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bio-volcano-plot.html

Lines changed: 245 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-box-plots.html

Lines changed: 1663 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bubble-charts.html

Lines changed: 654 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bubble-maps.html

Lines changed: 463 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-builtin-colorscales.html

Lines changed: 469 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-bullet-charts.html

Lines changed: 445 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-candlestick-charts.html

Lines changed: 516 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-carpet-contour.html

Lines changed: 490 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-carpet-plot.html

Lines changed: 568 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-carpet-scatter.html

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-categorical-axes.html

Lines changed: 882 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-choropleth-maps.html

Lines changed: 1205 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-click-events.html

Lines changed: 229 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-colorscales.html

Lines changed: 2387 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-cone-plot.html

Lines changed: 484 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-configuration-options.html

Lines changed: 1092 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-continuous-error-bars.html

Lines changed: 254 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-contour-plots.html

Lines changed: 1184 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-county-choropleth.html

Lines changed: 971 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-creating-and-updating-figures.html

Lines changed: 2375 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-custom-buttons.html

Lines changed: 744 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-dash.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
description: Analytical Apps with Dash
3+
display_as: file_settings
4+
language: python
5+
layout: base
6+
name: Analytical Apps with Dash
7+
order: 5
8+
page_type: example_index
9+
permalink: https://dash.plotly.com/
10+
sitemap: False
11+
thumbnail: thumbnail/dash_apps.png
12+
---
13+
14+
{% raw %}
15+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
16+
</div><div class="inner_cell">
17+
<div class="text_cell_render border-box-sizing rendered_html">
18+
19+
</div>
20+
</div>
21+
</div>
22+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
23+
</div><div class="inner_cell">
24+
<div class="text_cell_render border-box-sizing rendered_html">
25+
<h3 id="What-About-Dash?">What About Dash?<a class="anchor-link" href="#What-About-Dash?">&#182;</a></h3><p><a href="https://dash.plot.ly/">Dash</a> is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library.</p>
26+
<p>Learn about how to install Dash at <a href="https://dash.plot.ly/installation">https://dash.plot.ly/installation</a>.</p>
27+
<p>Everywhere in this page that you see <code>fig.show()</code>, you can display the same figure in a Dash application by passing it to the <code>figure</code> argument of the <a href="https://dash.plot.ly/dash-core-components/graph"><code>Graph</code> component</a> from the built-in <code>dash_core_components</code> package like this:</p>
28+
<div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">plotly.graph_objects</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">go</span> <span class="c1"># or plotly.express as px</span>
29+
<span class="n">fig</span> <span class="o">=</span> <span class="n">go</span><span class="o">.</span><span class="n">Figure</span><span class="p">()</span> <span class="c1"># or any Plotly Express function e.g. px.bar(...)</span>
30+
<span class="c1"># fig.add_trace( ... )</span>
31+
<span class="c1"># fig.update_layout( ... )</span>
32+
33+
<span class="kn">from</span><span class="w"> </span><span class="nn">dash</span><span class="w"> </span><span class="kn">import</span> <span class="n">Dash</span><span class="p">,</span> <span class="n">dcc</span><span class="p">,</span> <span class="n">html</span>
34+
35+
<span class="n">app</span> <span class="o">=</span> <span class="n">Dash</span><span class="p">()</span>
36+
<span class="n">app</span><span class="o">.</span><span class="n">layout</span> <span class="o">=</span> <span class="n">html</span><span class="o">.</span><span class="n">Div</span><span class="p">([</span>
37+
<span class="n">dcc</span><span class="o">.</span><span class="n">Graph</span><span class="p">(</span><span class="n">figure</span><span class="o">=</span><span class="n">fig</span><span class="p">)</span>
38+
<span class="p">])</span>
39+
40+
<span class="n">app</span><span class="o">.</span><span class="n">run_server</span><span class="p">(</span><span class="n">debug</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">use_reloader</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="c1"># Turn off reloader if inside Jupyter</span>
41+
</pre></div>
42+
43+
</div>
44+
</div>
45+
</div>
46+
47+
48+
49+
50+
{% endraw %}

2019-07-03-dendrogram.html

Lines changed: 439 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-density-heatmaps.html

Lines changed: 257 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-discrete-color.html

Lines changed: 1124 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-distplot.html

Lines changed: 1057 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-dot-plots.html

Lines changed: 430 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-dropdowns.html

Lines changed: 805 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-dumbbell-plots.html

Lines changed: 341 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-ecdf-plots.html

Lines changed: 1011 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-error-bars.html

Lines changed: 753 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-facet-plots.html

Lines changed: 1002 additions & 0 deletions
Large diffs are not rendered by default.

2019-07-03-figure-factories.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
description: Figure Factories are dedicated functions for creating very specific types of plots.
3+
display_as: file_settings
4+
language: python
5+
layout: base
6+
name: Figure Factories
7+
order: 33
8+
permalink: python/figure-factories/
9+
thumbnail: thumbnail/streamline.jpg
10+
---
11+
12+
{% raw %}
13+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
14+
</div><div class="inner_cell">
15+
<div class="text_cell_render border-box-sizing rendered_html">
16+
<h4 id="plotly.figure_factory"><code>plotly.figure_factory</code><a class="anchor-link" href="#plotly.figure_factory">&#182;</a></h4><p>The <code>plotly.figure_factory</code> module contains dedicated functions for creating very specific types of plots that were at the time of their creation difficult to create with <a href="/python/graph-objects/">graph objects</a> and prior to the existence of <a href="/python/plotly-express/">Plotly Express</a>. As new functionality gets added to <a href="https://plotly.com/javascript/">Plotly.js</a> and to Plotly Express, certain Figure Factories become unnecessary and are therefore deprecated as "legacy", but remain in the module for backwards-compatibility reasons.</p>
17+
<p>The following types of plots are still difficult to create with Graph Objects or Plotly Express and therefore the corresponding Figure Factories are <em>not</em> deprecated:</p>
18+
<ul>
19+
<li><a href="/python/dendrogram/">Dendrograms</a></li>
20+
<li><a href="/python/hexbin-mapbox/">Hexagonal Binning Tile Map</a></li>
21+
<li><a href="/python/quiver-plots/">Quiver Plots</a></li>
22+
<li><a href="/python/streamline-plots/">Streamline Plots</a></li>
23+
<li><a href="/python/figure-factory-table/">Tables</a></li>
24+
<li><a href="/python/ternary-contour/">Ternary Contour Plots</a></li>
25+
<li><a href="/python/trisurf/">Triangulated Surface Plots</a></li>
26+
</ul>
27+
<p>Deprecated "legacy" Figure Factories include:</p>
28+
<ul>
29+
<li><a href="/python/annotated-heatmap/">Annotated Heatmaps</a>, deprecated by <a href="/python/heatmaps/">heatmaps with <code>px.imshow()</code></a></li>
30+
<li><a href="/python/county-choropleth/">County Choropleth Maps</a>, deprecated by regular <a href="/python/choropleth-maps/">Choropleth maps with GeoJSON input</a></li>
31+
<li><a href="/python/distplot/">Distplots</a>, mostly deprecated by <a href="/python/histograms/"><code>px.histogram</code></a> except for KDE plots, which <code>px.histogram</code> doesn't support yet</li>
32+
<li><a href="/python/gantt/">Gantt Charts</a>, deprecated by <a href="/python/gantt/"><code>px.timeline</code></a></li>
33+
</ul>
34+
<h4 id="Reference">Reference<a class="anchor-link" href="#Reference">&#182;</a></h4><p>For more information about the contents of <code>plotly.figure_factory</code>, including deprecated methods, please refer to our <a href="https://plotly.com/python-api-reference/plotly.figure_factory.html">API Reference documentation</a>.</p>
35+
36+
</div>
37+
</div>
38+
</div>
39+
<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
40+
</div><div class="inner_cell">
41+
<div class="text_cell_render border-box-sizing rendered_html">
42+
<h3 id="What-About-Dash?">What About Dash?<a class="anchor-link" href="#What-About-Dash?">&#182;</a></h3><p><a href="https://dash.plot.ly/">Dash</a> is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library.</p>
43+
<p>Learn about how to install Dash at <a href="https://dash.plot.ly/installation">https://dash.plot.ly/installation</a>.</p>
44+
<p>Everywhere in this page that you see <code>fig.show()</code>, you can display the same figure in a Dash application by passing it to the <code>figure</code> argument of the <a href="https://dash.plot.ly/dash-core-components/graph"><code>Graph</code> component</a> from the built-in <code>dash_core_components</code> package like this:</p>
45+
<div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">plotly.graph_objects</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">go</span> <span class="c1"># or plotly.express as px</span>
46+
<span class="n">fig</span> <span class="o">=</span> <span class="n">go</span><span class="o">.</span><span class="n">Figure</span><span class="p">()</span> <span class="c1"># or any Plotly Express function e.g. px.bar(...)</span>
47+
<span class="c1"># fig.add_trace( ... )</span>
48+
<span class="c1"># fig.update_layout( ... )</span>
49+
50+
<span class="kn">from</span><span class="w"> </span><span class="nn">dash</span><span class="w"> </span><span class="kn">import</span> <span class="n">Dash</span><span class="p">,</span> <span class="n">dcc</span><span class="p">,</span> <span class="n">html</span>
51+
52+
<span class="n">app</span> <span class="o">=</span> <span class="n">Dash</span><span class="p">()</span>
53+
<span class="n">app</span><span class="o">.</span><span class="n">layout</span> <span class="o">=</span> <span class="n">html</span><span class="o">.</span><span class="n">Div</span><span class="p">([</span>
54+
<span class="n">dcc</span><span class="o">.</span><span class="n">Graph</span><span class="p">(</span><span class="n">figure</span><span class="o">=</span><span class="n">fig</span><span class="p">)</span>
55+
<span class="p">])</span>
56+
57+
<span class="n">app</span><span class="o">.</span><span class="n">run_server</span><span class="p">(</span><span class="n">debug</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">use_reloader</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="c1"># Turn off reloader if inside Jupyter</span>
58+
</pre></div>
59+
60+
</div>
61+
</div>
62+
</div>
63+
64+
65+
66+
67+
{% endraw %}

0 commit comments

Comments
 (0)