From 14b80d368e71d6e1ee1c78105efcb9c2de4e295c Mon Sep 17 00:00:00 2001 From: xhlulu Date: Tue, 17 Nov 2020 17:20:10 -0500 Subject: [PATCH] Add 5 more apps - 3d-mesh - 3d-scatter-plots - figure-labels - heatmaps - shapes --- doc/python/3d-mesh.md | 19 ++++++++++++++++--- doc/python/3d-scatter-plots.md | 21 +++++++++++++++++---- doc/python/figure-labels.md | 18 +++++++++++++++--- doc/python/heatmaps.md | 17 +++++++++++++++-- doc/python/shapes.md | 17 +++++++++++++++-- 5 files changed, 78 insertions(+), 14 deletions(-) diff --git a/doc/python/3d-mesh.md b/doc/python/3d-mesh.md index ca149187dde..3649a37d73f 100644 --- a/doc/python/3d-mesh.md +++ b/doc/python/3d-mesh.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.2' - jupytext_version: 1.3.0 + jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.3 + version: 3.7.6 plotly: description: How to make 3D Mesh Plots display_as: 3d_charts @@ -68,6 +68,19 @@ fig = go.Figure(data=[go.Mesh3d(x=x, y=y, z=z, fig.show() ``` +### 3D Mesh in Dash + +[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`. + +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 Dash Enterprise.** + + +```python hide_code=true +from IPython.display import IFrame +snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' +IFrame(snippet_url + '3d-mesh', width='100%', height=630) +``` + ### Mesh Tetrahedron 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() ``` ## Reference -See https://plotly.com/python/reference/mesh3d/ for more information and chart attribute options! \ No newline at end of file +See https://plotly.com/python/reference/mesh3d/ for more information and chart attribute options! diff --git a/doc/python/3d-scatter-plots.md b/doc/python/3d-scatter-plots.md index 8705d9b7f31..bc86a9fe9cb 100644 --- a/doc/python/3d-scatter-plots.md +++ b/doc/python/3d-scatter-plots.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.1' - jupytext_version: 1.1.1 + format_version: '1.2' + jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.6.8 + version: 3.7.6 plotly: description: How to make 3D scatter plots in Python with Plotly. display_as: 3d_charts @@ -72,6 +72,19 @@ fig = px.scatter_3d(df, x='sepal_length', y='sepal_width', z='petal_width', fig.update_layout(margin=dict(l=0, r=0, b=0, t=0)) ``` +#### 3d scatter plots in Dash + +[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`. + +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 Dash Enterprise.** + + +```python hide_code=true +from IPython.display import IFrame +snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' +IFrame(snippet_url + '3d-scatter-plots', width='100%', height=630) +``` + ### 3D Scatter Plot with go.Scatter3d #### Basic 3D Scatter Plot @@ -122,4 +135,4 @@ fig.show() #### Reference -See https://plotly.com/python/reference/scatter3d/ for more information and chart attribute options! \ No newline at end of file +See https://plotly.com/python/reference/scatter3d/ for more information and chart attribute options! diff --git a/doc/python/figure-labels.md b/doc/python/figure-labels.md index 40ee0b3c303..2cb1c21f28d 100644 --- a/doc/python/figure-labels.md +++ b/doc/python/figure-labels.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.2' - jupytext_version: 1.4.2 + jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.7 + version: 3.7.6 plotly: description: How to set the global font, title, legend-entries, and axis-titles in python. @@ -86,6 +86,18 @@ fig.update_xaxes(title_font_family="Arial") fig.show() ``` +### Fonts and Labels in Dash + +[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`. + +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 Dash Enterprise.** + +```python hide_code=true +from IPython.display import IFrame +snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' +IFrame(snippet_url + 'figure-labels', width='100%', height=630) +``` + ### Manual Labelling with Graph Objects 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() ``` #### Reference -See https://plotly.com/python/reference/layout/ for more information! \ No newline at end of file +See https://plotly.com/python/reference/layout/ for more information! diff --git a/doc/python/heatmaps.md b/doc/python/heatmaps.md index 1801c04d96e..56c728913f4 100644 --- a/doc/python/heatmaps.md +++ b/doc/python/heatmaps.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.2' - jupytext_version: 1.3.0 + jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.3 + version: 3.7.6 plotly: description: How to make Heatmaps in Python with Plotly. display_as: scientific @@ -57,6 +57,19 @@ fig = px.imshow(df) fig.show() ``` +#### Heatmaps in Dash + +[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`. + +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 Dash Enterprise.** + + +```python hide_code=true +from IPython.display import IFrame +snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' +IFrame(snippet_url + 'heatmaps', width='100%', height=630) +``` + ### Customizing the axes and labels on a heatmap 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: diff --git a/doc/python/shapes.md b/doc/python/shapes.md index 92de94ca55c..249f277d8d5 100644 --- a/doc/python/shapes.md +++ b/doc/python/shapes.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.2' - jupytext_version: 1.4.2 + jupytext_version: 1.6.0 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.7 + version: 3.7.6 plotly: description: How to make SVG shapes in python. Examples of lines, circle, rectangle, 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 fig.show() ``` +#### Shapes in Dash + +[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`. + +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 Dash Enterprise.** + + +```python hide_code=true +from IPython.display import IFrame +snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' +IFrame(snippet_url + 'shapes', width='100%', height=630) +``` + #### Vertical and Horizontal Lines Positioned Relative to the Axis Data ```python