Skip to content

Commit 14b80d3

Browse files
author
xhlulu
committed
Add 5 more apps
- 3d-mesh - 3d-scatter-plots - figure-labels - heatmaps - shapes
1 parent dd19b14 commit 14b80d3

File tree

5 files changed

+78
-14
lines changed

5 files changed

+78
-14
lines changed

doc/python/3d-mesh.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.3.0
9+
jupytext_version: 1.6.0
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.7.6
2424
plotly:
2525
description: How to make 3D Mesh Plots
2626
display_as: 3d_charts
@@ -68,6 +68,19 @@ fig = go.Figure(data=[go.Mesh3d(x=x, y=y, z=z,
6868
fig.show()
6969
```
7070

71+
### 3D Mesh in Dash
72+
73+
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.
74+
75+
Get started with [the official Dash docs](https://dash.plotly.com/installation) and **learn how to effortlessly [style](https://plotly.com/dash/design-kit/) & [deploy](https://plotly.com/dash/app-manager/) apps like this with <a style="color:red;" href="https://plotly.com/dash/">Dash Enterprise</a>.**
76+
77+
78+
```python hide_code=true
79+
from IPython.display import IFrame
80+
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
81+
IFrame(snippet_url + '3d-mesh', width='100%', height=630)
82+
```
83+
7184
### Mesh Tetrahedron
7285

7386
In this example we use the `ì`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh.
@@ -163,4 +176,4 @@ fig.show()
163176
```
164177

165178
## Reference
166-
See https://plotly.com/python/reference/mesh3d/ for more information and chart attribute options!
179+
See https://plotly.com/python/reference/mesh3d/ for more information and chart attribute options!

doc/python/3d-scatter-plots.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.1'
9-
jupytext_version: 1.1.1
8+
format_version: '1.2'
9+
jupytext_version: 1.6.0
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.8
23+
version: 3.7.6
2424
plotly:
2525
description: How to make 3D scatter plots in Python with Plotly.
2626
display_as: 3d_charts
@@ -72,6 +72,19 @@ fig = px.scatter_3d(df, x='sepal_length', y='sepal_width', z='petal_width',
7272
fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
7373
```
7474

75+
#### 3d scatter plots in Dash
76+
77+
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.
78+
79+
Get started with [the official Dash docs](https://dash.plotly.com/installation) and **learn how to effortlessly [style](https://plotly.com/dash/design-kit/) & [deploy](https://plotly.com/dash/app-manager/) apps like this with <a style="color:red;" href="https://plotly.com/dash/">Dash Enterprise</a>.**
80+
81+
82+
```python hide_code=true
83+
from IPython.display import IFrame
84+
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
85+
IFrame(snippet_url + '3d-scatter-plots', width='100%', height=630)
86+
```
87+
7588
### 3D Scatter Plot with go.Scatter3d
7689

7790
#### Basic 3D Scatter Plot
@@ -122,4 +135,4 @@ fig.show()
122135

123136
#### Reference
124137

125-
See https://plotly.com/python/reference/scatter3d/ for more information and chart attribute options!
138+
See https://plotly.com/python/reference/scatter3d/ for more information and chart attribute options!

doc/python/figure-labels.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.4.2
9+
jupytext_version: 1.6.0
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.7
23+
version: 3.7.6
2424
plotly:
2525
description: How to set the global font, title, legend-entries, and axis-titles
2626
in python.
@@ -86,6 +86,18 @@ fig.update_xaxes(title_font_family="Arial")
8686
fig.show()
8787
```
8888

89+
### Fonts and Labels in Dash
90+
91+
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash dash-daq`, click "Download" to get the code and run `python app.py`.
92+
93+
Get started with [the official Dash docs](https://dash.plotly.com/installation) and **learn how to effortlessly [style](https://plotly.com/dash/design-kit/) & [deploy](https://plotly.com/dash/app-manager/) apps like this with <a style="color:red;" href="https://plotly.com/dash/">Dash Enterprise</a>.**
94+
95+
```python hide_code=true
96+
from IPython.display import IFrame
97+
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
98+
IFrame(snippet_url + 'figure-labels', width='100%', height=630)
99+
```
100+
89101
### Manual Labelling with Graph Objects
90102

91103
When using (graph objects)[/python/graph-objects/] rather than [Plotly Express](/python/plotly-express/), you will need to explicitly label traces and axes:
@@ -147,4 +159,4 @@ fig.show()
147159
```
148160

149161
#### Reference
150-
See https://plotly.com/python/reference/layout/ for more information!
162+
See https://plotly.com/python/reference/layout/ for more information!

doc/python/heatmaps.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.3.0
9+
jupytext_version: 1.6.0
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.7.6
2424
plotly:
2525
description: How to make Heatmaps in Python with Plotly.
2626
display_as: scientific
@@ -57,6 +57,19 @@ fig = px.imshow(df)
5757
fig.show()
5858
```
5959

60+
#### Heatmaps in Dash
61+
62+
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.
63+
64+
Get started with [the official Dash docs](https://dash.plotly.com/installation) and **learn how to effortlessly [style](https://plotly.com/dash/design-kit/) & [deploy](https://plotly.com/dash/app-manager/) apps like this with <a style="color:red;" href="https://plotly.com/dash/">Dash Enterprise</a>.**
65+
66+
67+
```python hide_code=true
68+
from IPython.display import IFrame
69+
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
70+
IFrame(snippet_url + 'heatmaps', width='100%', height=630)
71+
```
72+
6073
### Customizing the axes and labels on a heatmap
6174

6275
You can use the `x`, `y` and `labels` arguments to customize the display of a heatmap, and use `.update_xaxes()` to move the x axis tick labels to the top:

doc/python/shapes.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.4.2
9+
jupytext_version: 1.6.0
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.7
23+
version: 3.7.6
2424
plotly:
2525
description: How to make SVG shapes in python. Examples of lines, circle, rectangle,
2626
and path.
@@ -69,6 +69,19 @@ fig = go.Figure(go.Scatter(x=[0,1,2,0,None,3,3,5,5,3], y=[0,2,0,0,None,0.5,1.5,1
6969
fig.show()
7070
```
7171

72+
#### Shapes in Dash
73+
74+
[Dash](https://plotly.com/dash/) is the best way to build analytical apps in Python using Plotly figures. To run the app below, run `pip install dash`, click "Download" to get the code and run `python app.py`.
75+
76+
Get started with [the official Dash docs](https://dash.plotly.com/installation) and **learn how to effortlessly [style](https://plotly.com/dash/design-kit/) & [deploy](https://plotly.com/dash/app-manager/) apps like this with <a style="color:red;" href="https://plotly.com/dash/">Dash Enterprise</a>.**
77+
78+
79+
```python hide_code=true
80+
from IPython.display import IFrame
81+
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
82+
IFrame(snippet_url + 'shapes', width='100%', height=630)
83+
```
84+
7285
#### Vertical and Horizontal Lines Positioned Relative to the Axis Data
7386

7487
```python

0 commit comments

Comments
 (0)