diff --git a/doc/python/3d-mesh.md b/doc/python/3d-mesh.md index e2d280c6ee2..fec2097972e 100644 --- a/doc/python/3d-mesh.md +++ b/doc/python/3d-mesh.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make 3D Mesh Plots display_as: 3d_charts @@ -81,6 +81,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + '3d-mesh', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Mesh Tetrahedron In this example we use the `i`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh. diff --git a/doc/python/3d-scatter-plots.md b/doc/python/3d-scatter-plots.md index 39643757131..12b2de61f67 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.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make 3D scatter plots in Python with Plotly. display_as: 3d_charts @@ -85,6 +85,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + '3d-scatter-plots', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### 3D Scatter Plot with go.Scatter3d #### Basic 3D Scatter Plot diff --git a/doc/python/axes.md b/doc/python/axes.md index 44721b867f4..a39e94049dd 100644 --- a/doc/python/axes.md +++ b/doc/python/axes.md @@ -6,9 +6,9 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: - display_name: Python 3 (ipykernel) + display_name: Python 3 language: python name: python3 language_info: @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.7 + version: 3.8.8 plotly: description: How to adjust axes properties in Python - axes titles, styling and coloring axes and grid lines, ticks, tick labels and more. @@ -137,6 +137,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'axes', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Moving Tick Labels Inside the Plot The `ticklabelposition` attribute moves tick labels inside the plotting area, and modifies the auto-range behaviour to accommodate the labels. diff --git a/doc/python/bar-charts.md b/doc/python/bar-charts.md index fb859600450..1b28f1c687b 100644 --- a/doc/python/bar-charts.md +++ b/doc/python/bar-charts.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.4 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.8.11 + version: 3.8.8 plotly: description: How to make Bar Charts in Python with Plotly. display_as: basic @@ -100,6 +100,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'bar-charts', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Colored Bars 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 --git a/doc/python/box-plots.md b/doc/python/box-plots.md index 80f1d29bfcc..a22762c0750 100644 --- a/doc/python/box-plots.md +++ b/doc/python/box-plots.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 (ipykernel) language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.0 + version: 3.8.8 plotly: description: How to make Box Plots in Python with Plotly. display_as: statistical @@ -77,6 +77,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'box-plots', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Display the underlying data With the `points` argument, display underlying data points with either all points (`all`), outliers only (`outliers`, default), or none of them (`False`). diff --git a/doc/python/builtin-colorscales.md b/doc/python/builtin-colorscales.md index 95645ad9be4..2cc7330a12b 100644 --- a/doc/python/builtin-colorscales.md +++ b/doc/python/builtin-colorscales.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: A reference for the built-in named continuous (sequential, diverging and cyclical) color scales in Plotly. @@ -87,6 +87,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'builtin-colorscales', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Built-In Sequential Color scales A collection of predefined sequential colorscales is provided in the `plotly.colors.sequential` module. Sequential color scales are appropriate for most continuous data, but in some cases it can be helpful to use a diverging or cyclical color scale (see below). diff --git a/doc/python/candlestick-charts.md b/doc/python/candlestick-charts.md index c6315bf4ee7..d4b98cc1979 100644 --- a/doc/python/candlestick-charts.md +++ b/doc/python/candlestick-charts.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make interactive candlestick charts in Python with Plotly. Six examples of candlestick charts with Pandas, time series, and yahoo finance @@ -87,6 +87,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'candlestick-charts', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Adding Customized Text and Annotations ```python diff --git a/doc/python/choropleth-maps.md b/doc/python/choropleth-maps.md index 8a61b1e6663..8bd82fc225b 100644 --- a/doc/python/choropleth-maps.md +++ b/doc/python/choropleth-maps.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: How to make choropleth maps in Python with Plotly. display_as: maps @@ -155,6 +155,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'choropleth-maps', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Discrete Colors In addition to [continuous colors](/python/colorscales/), we can [discretely-color](/python/discrete-color/) our choropleth maps by setting `color` to a non-numerical column, like the name of the winner of an election. diff --git a/doc/python/colorscales.md b/doc/python/colorscales.md index 39c3fcdbb77..97c057cb3fd 100644 --- a/doc/python/colorscales.md +++ b/doc/python/colorscales.md @@ -6,9 +6,9 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.4 + jupytext_version: 1.14.1 kernelspec: - display_name: Python 3 (ipykernel) + display_name: Python 3 language: python name: python3 language_info: @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.11 + version: 3.8.8 plotly: description: How to set, create and control continuous color scales and color bars in scatter, bar, map and heatmap figures. @@ -103,6 +103,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'colorscales', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Color Scales in Plotly Express By default, [Plotly Express](/python/plotly-express/) will use the color scale from the active [template](/python/templates/)'s `layout.colorscales.sequential` attribute, and the default active template is `plotly` which uses the `Plasma` color scale. You can choose any of the [built-in color scales](/python/builtin-colorscales/), however, or define your own. diff --git a/doc/python/creating-and-updating-figures.md b/doc/python/creating-and-updating-figures.md index 9220f2a1820..694e0d1ae0d 100644 --- a/doc/python/creating-and-updating-figures.md +++ b/doc/python/creating-and-updating-figures.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Creating and Updating Figures with Plotly's Python graphing library display_as: file_settings @@ -140,6 +140,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'figure-structure', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Creating Figures This section summarizes several ways to create new graph object figures with the `plotly.py` graphing library. diff --git a/doc/python/discrete-color.md b/doc/python/discrete-color.md index 6924445db88..39d676bff34 100644 --- a/doc/python/discrete-color.md +++ b/doc/python/discrete-color.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to use and configure discrete color sequences, also known as categorical or qualitative color scales. @@ -111,6 +111,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'discrete-color', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Color Sequences in Plotly Express 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 --git a/doc/python/distplot.md b/doc/python/distplot.md index 2e83178f224..2d322e939df 100644 --- a/doc/python/distplot.md +++ b/doc/python/distplot.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make interactive Distplots in Python with Plotly. display_as: statistical @@ -69,6 +69,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'distplot', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## Combined statistical representations with distplot figure factory The distplot [figure factory](/python/figure-factories/) displays a combination of statistical representations of numerical data, such as histogram, kernel density estimation or normal curve, and rug plot. diff --git a/doc/python/figure-labels.md b/doc/python/figure-labels.md index 3a4c6d3cfd7..2d10ade6c0b 100644 --- a/doc/python/figure-labels.md +++ b/doc/python/figure-labels.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to set the global font, title, legend-entries, and axis-titles in python. @@ -98,6 +98,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'figure-labels', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### 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: diff --git a/doc/python/figure-structure.md b/doc/python/figure-structure.md index d3e85e2cba9..7a078a05c94 100644 --- a/doc/python/figure-structure.md +++ b/doc/python/figure-structure.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.11.4 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.8.11 + version: 3.8.8 plotly: description: The structure of a figure - data, traces and layout explained. display_as: file_settings @@ -62,6 +62,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'figure-structure', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Figures as Trees of Attributes Plotly.js supports inputs adhering to a well-defined schema, whose overall architecture is explained in this page and which is exhaustively documented in the [Figure Reference](/python/reference/index/) (which is itself generated from a [machine-readable JSON representation of the schema](https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json)). Figures are represented as trees with named nodes called "attributes". The root node of the tree has three top-level attributes: `data`, `layout` and `frames` (see below). diff --git a/doc/python/filled-area-plots.md b/doc/python/filled-area-plots.md index 9853da0524a..5d6ff142d2c 100644 --- a/doc/python/filled-area-plots.md +++ b/doc/python/filled-area-plots.md @@ -6,9 +6,9 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: - display_name: Python 3 (ipykernel) + display_name: Python 3 language: python name: python3 language_info: @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.7 + version: 3.8.8 plotly: description: How to make filled area plots in Python with Plotly. display_as: basic @@ -61,6 +61,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'filled-area-plots', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Pattern Fills *New in v5.7* diff --git a/doc/python/getting-started.md b/doc/python/getting-started.md index 03a1d72ad85..b3f257bb0f9 100644 --- a/doc/python/getting-started.md +++ b/doc/python/getting-started.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: Getting Started with Plotly for Python. has_thumbnail: false @@ -90,6 +90,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'getting-started', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### JupyterLab Support For use in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), install the `jupyterlab` and `ipywidgets` diff --git a/doc/python/heatmaps.md b/doc/python/heatmaps.md index 2bedf724252..07edd31e9c7 100644 --- a/doc/python/heatmaps.md +++ b/doc/python/heatmaps.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.4 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.8.11 + version: 3.8.8 plotly: description: How to make Heatmaps in Python with Plotly. display_as: scientific @@ -106,6 +106,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'heatmaps', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Controlling Aspect Ratio By default, `px.imshow()` produces heatmaps with square tiles, but setting the `aspect` argument to `"auto"` will instead fill the plotting area with the heatmap, using non-square tiles. diff --git a/doc/python/histograms.md b/doc/python/histograms.md index 0bf6a831bc3..305cd273b98 100644 --- a/doc/python/histograms.md +++ b/doc/python/histograms.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.4 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.8.11 + version: 3.8.8 plotly: description: How to make Histograms in Python with Plotly. display_as: statistical @@ -113,6 +113,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'histograms', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Accessing the counts (y-axis) values 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 --git a/doc/python/horizontal-vertical-shapes.md b/doc/python/horizontal-vertical-shapes.md index 78858088d7f..6e3dc4789fb 100644 --- a/doc/python/horizontal-vertical-shapes.md +++ b/doc/python/horizontal-vertical-shapes.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to add annotated horizontal and vertical lines in Python. display_as: file_settings @@ -80,6 +80,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'horizontal-vertical-shapes', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Adding Text Annotations [Text annotations](/python/text-and-annotations) can optionally be added to an autoshape diff --git a/doc/python/hover-text-and-formatting.md b/doc/python/hover-text-and-formatting.md index 5778cce75ba..2d4ae985c19 100644 --- a/doc/python/hover-text-and-formatting.md +++ b/doc/python/hover-text-and-formatting.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: How to use hover text and formatting in Python with Plotly. display_as: file_settings @@ -97,6 +97,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'hover-text-and-formatting', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Selecting a hovermode in a figure created with `plotly.graph_objects` The hovermode is a property of the figure layout, so you can select a hovermode no matter how you created the figure, either with `plotly.express` or with `plotly.graph_objects`. Below is an example with a figure created with `plotly.graph_objects`. If you're not familiar with the structure of plotly figures, you can read [the tutorial on creating and updating plotly figures](/python/creating-and-updating-figures/). diff --git a/doc/python/interactive-html-export.md b/doc/python/interactive-html-export.md index d2fc962a7d5..9691e0f2398 100644 --- a/doc/python/interactive-html-export.md +++ b/doc/python/interactive-html-export.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Plotly allows you to save interactive HTML versions of your figures to your local disk. @@ -69,6 +69,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'interactive-html-export', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Full Parameter Documentation ```python diff --git a/doc/python/legend.md b/doc/python/legend.md index 37db5613b82..a83ab1e7c45 100644 --- a/doc/python/legend.md +++ b/doc/python/legend.md @@ -6,9 +6,9 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: - display_name: Python 3 (ipykernel) + display_name: Python 3 language: python name: python3 language_info: @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.0 + version: 3.8.8 plotly: description: How to configure and style the legend in Plotly with Python. display_as: file_settings @@ -163,6 +163,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'legend', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Horizontal Legends The `layout.legend.orientation` attribute can be set to `"h"` for a horizontal legend. Here we also position it above the plotting area. diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index a0a916d8e30..cfbcf34730c 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: How to make scatter plots in Python with Plotly. display_as: basic @@ -98,6 +98,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'line-and-scatter', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Scatter plots and Categorical Axes 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 --git a/doc/python/line-charts.md b/doc/python/line-charts.md index ac7c987f1ab..0c9fe2522a1 100644 --- a/doc/python/line-charts.md +++ b/doc/python/line-charts.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: How to make line charts in Python with Plotly. Examples on creating and styling line charts in Python with Plotly. @@ -71,6 +71,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'line-charts', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Data Order in Line Charts 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 --git a/doc/python/mapbox-county-choropleth.md b/doc/python/mapbox-county-choropleth.md index 5fa40aef6b5..bd439c5e3d2 100644 --- a/doc/python/mapbox-county-choropleth.md +++ b/doc/python/mapbox-county-choropleth.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make a Mapbox Choropleth Map of US Counties in Python with Plotly. @@ -120,6 +120,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'mapbox-county-choropleth', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Indexing by GeoJSON Properties If the GeoJSON you are using either does not have an `id` field or you wish you use one of the keys in the `properties` field, you may use the `featureidkey` parameter to specify where to match the values of `locations`. diff --git a/doc/python/marker-style.md b/doc/python/marker-style.md index 1acf2803a6b..e51e564bb3a 100644 --- a/doc/python/marker-style.md +++ b/doc/python/marker-style.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to style markers in Python with Plotly. display_as: file_settings @@ -120,6 +120,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'marker-style', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Opacity Setting opacity outside the marker will set the opacity of the trace. Thus, it will allow greater visibility of additional traces but like fully opaque it is hard to distinguish density. diff --git a/doc/python/ml-knn.md b/doc/python/ml-knn.md index ce3de0e45dc..132595411f5 100644 --- a/doc/python/ml-knn.md +++ b/doc/python/ml-knn.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Visualize scikit-learn's k-Nearest Neighbors (kNN) classification in Python with Plotly. @@ -249,6 +249,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'knn-classification', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## Multi-class prediction confidence with [`go.Heatmap`](https://plotly.com/python/heatmaps/) It is also possible to visualize the prediction confidence of the model using [heatmaps](https://plotly.com/python/heatmaps/). In this example, you can see how to compute how confident the model is about its prediction at every point in the 2D grid. Here, we define the confidence as the difference between the highest score and the score of the other classes summed, at a certain point. diff --git a/doc/python/ml-pca.md b/doc/python/ml-pca.md index 634897ec49d..b231259aa6c 100644 --- a/doc/python/ml-pca.md +++ b/doc/python/ml-pca.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Visualize Principle Component Analysis (PCA) of your high-dimensional data in Python with Plotly. @@ -149,6 +149,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'pca-visualization', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## 2D PCA Scatter Plot In the previous examples, you saw how to visualize high-dimensional PCs. In this example, we show you how to simply visualize the first two principal components of a PCA, by reducing a dataset of 4 dimensions to 2D. diff --git a/doc/python/ml-regression.md b/doc/python/ml-regression.md index 86e58933058..9b07a7a9851 100644 --- a/doc/python/ml-regression.md +++ b/doc/python/ml-regression.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Visualize regression in scikit-learn with Plotly. display_as: ai_ml @@ -104,6 +104,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'ml-regression', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## Model generalization on unseen data With `go.Scatter`, you can easily color your plot based on a predefined data split. By coloring the training and the testing data points with different colors, you can easily see if whether the model generalizes well to the test data or not. diff --git a/doc/python/ml-roc-pr.md b/doc/python/ml-roc-pr.md index d01237136ea..f6f9ee0c6ee 100644 --- a/doc/python/ml-roc-pr.md +++ b/doc/python/ml-roc-pr.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: Interpret the results of your classification using Receiver Operating Characteristics (ROC) and Precision-Recall (PR) Curves in Python with Plotly. @@ -132,6 +132,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'roc-and-pr-curves', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## Multiclass ROC Curve When you have more than 2 classes, you will need to plot the ROC curve for each class separately. Make sure that you use a [one-versus-rest](https://scikit-learn.org/stable/modules/multiclass.html#one-vs-the-rest) model, or make sure that your problem has a [multi-label](https://scikit-learn.org/stable/modules/multiclass.html#multilabel-classification-format) format; otherwise, your ROC curve might not return the expected results. diff --git a/doc/python/multiple-axes.md b/doc/python/multiple-axes.md index 96deaa5365f..389c6a1a14b 100644 --- a/doc/python/multiple-axes.md +++ b/doc/python/multiple-axes.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make a graph with multiple axes (dual y-axis plots, plots with secondary axes) in python. @@ -88,6 +88,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'multiple-axes', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Multiple Y-Axes Subplots ```python diff --git a/doc/python/network-graphs.md b/doc/python/network-graphs.md index 5d59ceab827..6046fdd4728 100644 --- a/doc/python/network-graphs.md +++ b/doc/python/network-graphs.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make Network Graphs in Python with Plotly. One examples of a network graph with NetworkX @@ -158,5 +158,9 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'network-graphs', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Reference See https://plotly.com/python/reference/scatter/ for more information and chart attribute options! diff --git a/doc/python/pie-charts.md b/doc/python/pie-charts.md index a92dcdca065..8564822091e 100644 --- a/doc/python/pie-charts.md +++ b/doc/python/pie-charts.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make Pie Charts. display_as: basic @@ -76,6 +76,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'pie-charts', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Setting the color of pie sectors with px.pie ```python diff --git a/doc/python/plot-data-from-csv.md b/doc/python/plot-data-from-csv.md index b8889187660..0050881e037 100644 --- a/doc/python/plot-data-from-csv.md +++ b/doc/python/plot-data-from-csv.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to create charts from csv files with Plotly and Python display_as: advanced_opt @@ -69,6 +69,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'plot-data-from-csv', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Plot from CSV with `graph_objects` ```python diff --git a/doc/python/renderers.md b/doc/python/renderers.md index db2a2847d60..53c8a8b6154 100644 --- a/doc/python/renderers.md +++ b/doc/python/renderers.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: Displaying Figures using Plotly's Python graphing library display_as: file_settings @@ -243,6 +243,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'renderers', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ## Displaying Figures Using `ipywidgets` Plotly figures can be displayed in [ipywidgets](https://ipywidgets.readthedocs.io/en/stable/) contexts using `plotly.graph_objects.FigureWidget` objects. `FigureWidget` is a figure graph object (just like `plotly.graph_objects.Figure`), so you can add traces to it and update it just like a regular `Figure`. But `FigureWidget` is also an `ipywidgets` object, which means that you can display it alongside other `ipywidgets` to build user interfaces right in the notebook. diff --git a/doc/python/sankey-diagram.md b/doc/python/sankey-diagram.md index 2c37357513b..04fcbf1291f 100644 --- a/doc/python/sankey-diagram.md +++ b/doc/python/sankey-diagram.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernel_info: name: python2 kernelspec: @@ -22,7 +22,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make Sankey Diagrams in Python with Plotly. display_as: basic @@ -117,6 +117,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'sankey-diagram', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Style Sankey Diagram This example also uses [hovermode](https://plotly.com/python/reference/layout/#layout-hovermode) to enable multiple tooltips. diff --git a/doc/python/setting-graph-size.md b/doc/python/setting-graph-size.md index d89e4f16f03..65a632dd37a 100644 --- a/doc/python/setting-graph-size.md +++ b/doc/python/setting-graph-size.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 (ipykernel) language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.0 + version: 3.8.8 plotly: description: How to manipulate the graph size, margins and background color. display_as: file_settings @@ -63,6 +63,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'setting-graph-size', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Adjusting Height, Width, & Margins With Graph Objects [Graph objects](/python/graph-objects/) are the low-level building blocks of figures which you can use instead of Plotly Express for greater control. diff --git a/doc/python/shapes.md b/doc/python/shapes.md index 7b10116489e..c736c1bb5d3 100644 --- a/doc/python/shapes.md +++ b/doc/python/shapes.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make SVG shapes in python. Examples of lines, circle, rectangle, and path. @@ -82,6 +82,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'shapes', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Vertical and Horizontal Lines Positioned Relative to the Axis Data ```python diff --git a/doc/python/subplots.md b/doc/python/subplots.md index f89ed06c033..5d9c49c55ae 100644 --- a/doc/python/subplots.md +++ b/doc/python/subplots.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make subplots in with Plotly's Python graphing library. Examples of stacked, custom-sized, gridded, and annotated subplots. @@ -224,6 +224,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'subplots', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Customizing Subplot Axes 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. diff --git a/doc/python/table.md b/doc/python/table.md index b565c4a49f0..36a7ebcd1df 100644 --- a/doc/python/table.md +++ b/doc/python/table.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to make tables in Python with Plotly. display_as: basic @@ -102,6 +102,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'table', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Changing Row and Column Size ```python diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index c72025e80b2..d75751d1a50 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -6,7 +6,7 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.4 + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.8.11 + version: 3.8.8 plotly: description: How to add text labels and annotations to plots in python. display_as: file_settings @@ -116,6 +116,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'text-and-annotations', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Controlling Text Size with `uniformtext` For the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemap-charts) traces, it is possible to force all the text labels to have the same size thanks to the `uniformtext` layout parameter. The `minsize` attribute sets the font size, and the `mode` attribute sets what happens for labels which cannot fit with the desired fontsize: either `hide` them or `show` them with overflow. diff --git a/doc/python/tick-formatting.md b/doc/python/tick-formatting.md index 23b76f85dc3..dafac06c58a 100644 --- a/doc/python/tick-formatting.md +++ b/doc/python/tick-formatting.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.6.0 + format_version: '1.3' + jupytext_version: 1.14.1 kernelspec: display_name: Python 3 language: python @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.7.6 + version: 3.8.8 plotly: description: How to format axes ticks in Python with Plotly. display_as: file_settings @@ -93,6 +93,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'tick-formatting', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + #### Using Tickformat Attribute diff --git a/doc/python/time-series.md b/doc/python/time-series.md index bfd4d61a02f..c55ffef7a42 100644 --- a/doc/python/time-series.md +++ b/doc/python/time-series.md @@ -6,9 +6,9 @@ jupyter: extension: .md format_name: markdown format_version: '1.3' - jupytext_version: 1.13.7 + jupytext_version: 1.14.1 kernelspec: - display_name: Python 3 (ipykernel) + display_name: Python 3 language: python name: python3 language_info: @@ -20,7 +20,7 @@ jupyter: name: python nbconvert_exporter: python pygments_lexer: ipython3 - version: 3.9.7 + version: 3.8.8 plotly: description: How to plot date and time in python. display_as: financial @@ -74,6 +74,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'time-series', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ + ### Different Chart Types on Date Axes Any kind of cartesian chart can be placed on `date` axes, for example this bar chart of relative stock ticker values. diff --git a/doc/python/troubleshooting.md b/doc/python/troubleshooting.md index 800c9b87db8..c71c63d9e61 100644 --- a/doc/python/troubleshooting.md +++ b/doc/python/troubleshooting.md @@ -5,8 +5,8 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.2' - jupytext_version: 1.4.2 + format_version: '1.3' + jupytext_version: 1.14.1 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.8.8 plotly: description: How to troubleshoot import and rendering problems in Plotly with Python. @@ -65,6 +65,9 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash- IFrame(snippet_url + 'renderers', width='100%', height=1200) ``` +

Sign up for Dash Club → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture. +Join now.

+ ### JupyterLab Problems