Skip to content

Commit 60b75cf

Browse files
committed
add Dash Club
1 parent 6efb862 commit 60b75cf

10 files changed

+96
-36
lines changed

Diff for: doc/python/axes.md

+8-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.3'
9-
jupytext_version: 1.13.7
9+
jupytext_version: 1.14.1
1010
kernelspec:
1111
display_name: Python 3 (ipykernel)
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.9.7
23+
version: 3.8.0
2424
plotly:
2525
description: How to adjust axes properties in Python - axes titles, styling and
2626
coloring axes and grid lines, ticks, tick labels and more.
@@ -137,6 +137,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
137137
IFrame(snippet_url + 'axes', width='100%', height=1200)
138138
```
139139

140+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
141+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
142+
community apps, and deep dives into the Dash architecture.
143+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
144+
145+
140146
#### Moving Tick Labels Inside the Plot
141147

142148
The `ticklabelposition` attribute moves tick labels inside the plotting area, and modifies the auto-range behaviour to accommodate the labels.

Diff for: doc/python/bar-charts.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.13.4
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.11
23+
version: 3.8.0
2424
plotly:
2525
description: How to make Bar Charts in Python with Plotly.
2626
display_as: basic
@@ -100,6 +100,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
100100
IFrame(snippet_url + 'bar-charts', width='100%', height=1200)
101101
```
102102

103+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
104+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
105+
community apps, and deep dives into the Dash architecture.
106+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
107+
108+
103109
### Colored Bars
104110

105111
The bar plot can be customized using keyword arguments, for example to use [continuous color](https://plotly.com/python/colorscales/), as below, or [discrete color](/python/discrete-color/), as above.

Diff for: doc/python/creating-and-updating-figures.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.0
2424
plotly:
2525
description: Creating and Updating Figures with Plotly's Python graphing library
2626
display_as: file_settings
@@ -140,6 +140,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
140140
IFrame(snippet_url + 'figure-structure', width='100%', height=1200)
141141
```
142142

143+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
144+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
145+
community apps, and deep dives into the Dash architecture.
146+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
147+
148+
143149
### Creating Figures
144150

145151
This section summarizes several ways to create new graph object figures with the `plotly.py` graphing library.

Diff for: doc/python/discrete-color.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.0
2424
plotly:
2525
description: How to use and configure discrete color sequences, also known as
2626
categorical or qualitative color scales.
@@ -111,6 +111,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
111111
IFrame(snippet_url + 'discrete-color', width='100%', height=1200)
112112
```
113113

114+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
115+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
116+
community apps, and deep dives into the Dash architecture.
117+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
118+
119+
114120
### Color Sequences in Plotly Express
115121

116122
By default, Plotly Express will use the color sequence from the active [template](/python/templates/)'s `layout.colorway` attribute, and the default active template is `plotly` which uses the `plotly` color sequence. You can choose any of the following built-in qualitative color sequences from the `px.colors.qualitative` module, however, or define your own.

Diff for: doc/python/figure-labels.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.0
2424
plotly:
2525
description: How to set the global font, title, legend-entries, and axis-titles
2626
in python.
@@ -98,6 +98,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
9898
IFrame(snippet_url + 'figure-labels', width='100%', height=1200)
9999
```
100100

101+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
102+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
103+
community apps, and deep dives into the Dash architecture.
104+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
105+
106+
101107
### Manual Labelling with Graph Objects
102108

103109
When using (graph objects)[/python/graph-objects/] rather than [Plotly Express](/python/plotly-express/), you will need to explicitly label traces and axes:

Diff for: doc/python/getting-started.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.4.2
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.7
23+
version: 3.8.0
2424
plotly:
2525
description: Getting Started with Plotly for Python.
2626
has_thumbnail: false
@@ -90,6 +90,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
9090
IFrame(snippet_url + 'getting-started', width='100%', height=1200)
9191
```
9292

93+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
94+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
95+
community apps, and deep dives into the Dash architecture.
96+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
97+
98+
9399
#### JupyterLab Support
94100

95101
For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets`

Diff for: doc/python/histograms.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.13.4
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.11
23+
version: 3.8.0
2424
plotly:
2525
description: How to make Histograms in Python with Plotly.
2626
display_as: statistical
@@ -113,6 +113,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
113113
IFrame(snippet_url + 'histograms', width='100%', height=1200)
114114
```
115115

116+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
117+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
118+
community apps, and deep dives into the Dash architecture.
119+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
120+
121+
116122
#### Accessing the counts (y-axis) values
117123

118124
JavaScript calculates the y-axis (count) values on the fly in the browser, so it's not accessible in the `fig`. You can manually calculate it using `np.histogram`.

Diff for: doc/python/line-and-scatter.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.4.2
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.7
23+
version: 3.8.0
2424
plotly:
2525
description: How to make scatter plots in Python with Plotly.
2626
display_as: basic
@@ -98,6 +98,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
9898
IFrame(snippet_url + 'line-and-scatter', width='100%', height=1200)
9999
```
100100

101+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
102+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
103+
community apps, and deep dives into the Dash architecture.
104+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
105+
106+
101107
### Scatter plots and Categorical Axes
102108

103109
Scatter plots can be made using any type of cartesian axis, including [linear](https://plotly.com/python/axes/), [logarithmic](https://plotly.com/python/log-plot/), [categorical](https://plotly.com/python/categorical-axes/) or [date](https://plotly.com/python/time-series/) axes.

Diff for: doc/python/line-charts.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.4.2
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.7
23+
version: 3.8.0
2424
plotly:
2525
description: How to make line charts in Python with Plotly. Examples on creating
2626
and styling line charts in Python with Plotly.
@@ -71,6 +71,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
7171
IFrame(snippet_url + 'line-charts', width='100%', height=1200)
7272
```
7373

74+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
75+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
76+
community apps, and deep dives into the Dash architecture.
77+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
78+
79+
7480
### Data Order in Line Charts
7581

7682
Plotly line charts are implemented as [connected scatterplots](https://www.data-to-viz.com/graph/connectedscatter.html) (see below), meaning that the points are plotted and connected with lines **in the order they are provided, with no automatic reordering**.

Diff for: doc/python/subplots.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.0
2424
plotly:
2525
description: How to make subplots in with Plotly's Python graphing library. Examples
2626
of stacked, custom-sized, gridded, and annotated subplots.
@@ -224,6 +224,12 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
224224
IFrame(snippet_url + 'subplots', width='100%', height=1200)
225225
```
226226

227+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);" data-user-style="{&quot;boxShadow&quot;:&quot;none&quot;,&quot;width&quot;:&quot;calc(100% - 30px)&quot;,&quot;border&quot;:&quot;thin rgb(229,229,229) solid&quot;}" class="block card ddk-card "><div class="card--content" style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Updates from Chris Parmer and
228+
Adam Schroeder delivered to your inbox every two months. Includes tips and tricks,
229+
community apps, and deep dives into the Dash architecture.
230+
<u><a href="https://go.plotly.com/dash-club?utm_medium=dash_docs&amp;utm_content=installation">Join now</a></u>.</p></div></div></div></div>
231+
232+
227233
#### Customizing Subplot Axes
228234
After a figure with subplots is created using the `make_subplots` function, its axis properties (title, font, range, grid style, etc.) can be customized using the `update_xaxes` and `update_yaxes` graph object figure methods. By default, these methods apply to all of the x axes or y axes in the figure. The `row` and `col` arguments can be used to control which axes are targeted by the update.
229235

0 commit comments

Comments
 (0)