diff --git a/doc/python/3d-mesh.md b/doc/python/3d-mesh.md index 610c8153a9..9f38473a33 100644 --- a/doc/python/3d-mesh.md +++ b/doc/python/3d-mesh.md @@ -77,7 +77,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + '3d-mesh', width='100%', height=1200) ``` diff --git a/doc/python/3d-scatter-plots.md b/doc/python/3d-scatter-plots.md index 46e389b565..5a73bf71ae 100644 --- a/doc/python/3d-scatter-plots.md +++ b/doc/python/3d-scatter-plots.md @@ -82,7 +82,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + '3d-scatter-plots', width='100%', height=1200) ``` diff --git a/doc/python/animations.md b/doc/python/animations.md index c61162693e..5b0e7cae92 100644 --- a/doc/python/animations.md +++ b/doc/python/animations.md @@ -57,7 +57,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'animations', width='100%', height=1200) ``` diff --git a/doc/python/axes.md b/doc/python/axes.md index df8672e0e2..039f30c660 100644 --- a/doc/python/axes.md +++ b/doc/python/axes.md @@ -133,7 +133,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'axes', width='100%', height=1200) ``` diff --git a/doc/python/bar-charts.md b/doc/python/bar-charts.md index f16955a93b..09ef71cee8 100644 --- a/doc/python/bar-charts.md +++ b/doc/python/bar-charts.md @@ -96,7 +96,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'bar-charts', width='100%', height=1200) ``` diff --git a/doc/python/bio-alignment-chart.md b/doc/python/bio-alignment-chart.md index 5021ed6ad0..b36520ae38 100644 --- a/doc/python/bio-alignment-chart.md +++ b/doc/python/bio-alignment-chart.md @@ -58,6 +58,6 @@ fig.show() ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'bio-alignmentchart', width='100%', height=1200) ``` diff --git a/doc/python/bio-clustergram.md b/doc/python/bio-clustergram.md index 635110109e..5d724b984e 100644 --- a/doc/python/bio-clustergram.md +++ b/doc/python/bio-clustergram.md @@ -102,6 +102,6 @@ dash_bio.Clustergram( ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'bio-clustergram', width='100%', height=1200) ``` diff --git a/doc/python/bio-manhattanplot.md b/doc/python/bio-manhattanplot.md index 62fa99b87a..be2bbb6833 100644 --- a/doc/python/bio-manhattanplot.md +++ b/doc/python/bio-manhattanplot.md @@ -71,6 +71,6 @@ dash_bio.ManhattanPlot( ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'bio-manhattanplot', width='100%', height=1200) ``` diff --git a/doc/python/bio-volcano-plot.md b/doc/python/bio-volcano-plot.md index 0b3ea56f0b..7f71d86c88 100644 --- a/doc/python/bio-volcano-plot.md +++ b/doc/python/bio-volcano-plot.md @@ -71,6 +71,6 @@ dash_bio.VolcanoPlot( ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'bio-volcano', width='100%', height=1200) ``` diff --git a/doc/python/box-plots.md b/doc/python/box-plots.md index 244c21106e..919c910627 100644 --- a/doc/python/box-plots.md +++ b/doc/python/box-plots.md @@ -73,7 +73,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'box-plots', width='100%', height=1200) ``` diff --git a/doc/python/builtin-colorscales.md b/doc/python/builtin-colorscales.md index a9eb672c3f..94e4426bc2 100644 --- a/doc/python/builtin-colorscales.md +++ b/doc/python/builtin-colorscales.md @@ -83,7 +83,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'builtin-colorscales', width='100%', height=1200) ``` diff --git a/doc/python/candlestick-charts.md b/doc/python/candlestick-charts.md index 06273b4ad4..1a6e69b91b 100644 --- a/doc/python/candlestick-charts.md +++ b/doc/python/candlestick-charts.md @@ -83,7 +83,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'candlestick-charts', width='100%', height=1200) ``` diff --git a/doc/python/choropleth-maps.md b/doc/python/choropleth-maps.md index e38e51befd..0c45d5dc1c 100644 --- a/doc/python/choropleth-maps.md +++ b/doc/python/choropleth-maps.md @@ -151,7 +151,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'choropleth-maps', width='100%', height=1200) ``` diff --git a/doc/python/colorscales.md b/doc/python/colorscales.md index 61e84314d4..8dd439c108 100644 --- a/doc/python/colorscales.md +++ b/doc/python/colorscales.md @@ -99,7 +99,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'colorscales', width='100%', height=1200) ``` diff --git a/doc/python/creating-and-updating-figures.md b/doc/python/creating-and-updating-figures.md index 694e0d1ae0..4acc74a97e 100644 --- a/doc/python/creating-and-updating-figures.md +++ b/doc/python/creating-and-updating-figures.md @@ -136,7 +136,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'figure-structure', width='100%', height=1200) ``` diff --git a/doc/python/discrete-color.md b/doc/python/discrete-color.md index 39d676bff3..2752e3291b 100644 --- a/doc/python/discrete-color.md +++ b/doc/python/discrete-color.md @@ -107,7 +107,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'discrete-color', width='100%', height=1200) ``` diff --git a/doc/python/distplot.md b/doc/python/distplot.md index 2d322e939d..7335438396 100644 --- a/doc/python/distplot.md +++ b/doc/python/distplot.md @@ -65,7 +65,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'distplot', width='100%', height=1200) ``` diff --git a/doc/python/figure-labels.md b/doc/python/figure-labels.md index ffd652c3cb..7c9d3acdb0 100644 --- a/doc/python/figure-labels.md +++ b/doc/python/figure-labels.md @@ -114,7 +114,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'figure-labels', width='100%', height=1200) ``` diff --git a/doc/python/figure-structure.md b/doc/python/figure-structure.md index f55abad91b..e011fb9e8b 100644 --- a/doc/python/figure-structure.md +++ b/doc/python/figure-structure.md @@ -58,7 +58,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'figure-structure', width='100%', height=1200) ``` diff --git a/doc/python/filled-area-plots.md b/doc/python/filled-area-plots.md index 33446f0293..ea92414408 100644 --- a/doc/python/filled-area-plots.md +++ b/doc/python/filled-area-plots.md @@ -57,7 +57,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'filled-area-plots', width='100%', height=1200) ``` @@ -133,9 +133,9 @@ fig.show() *New in 5.20* -Scatter traces with a fill support a `fillgradient`, which is a `dict` of options that defines the gradient. Use `fillgradient.colorscale` to define the [colorscale](https://plotly.com/python/colorscales) for the gradient and choose a `type` to define the orientation of the gradient (`'horizontal'`, `'vertical'` or `'radial'`). +Scatter traces with a fill support a `fillgradient`, which is a `dict` of options that defines the gradient. Use `fillgradient.colorscale` to define the [colorscale](https://plotly.com/python/colorscales) for the gradient and choose a `type` to define the orientation of the gradient (`'horizontal'`, `'vertical'` or `'radial'`). -In the following example, we've defined a `horizontal` `fillgradient` with a colorscale of three colors. +In the following example, we've defined a `horizontal` `fillgradient` with a colorscale of three colors. ```python import plotly.graph_objects as go diff --git a/doc/python/getting-started.md b/doc/python/getting-started.md index 9c185f7a43..5de062fb33 100644 --- a/doc/python/getting-started.md +++ b/doc/python/getting-started.md @@ -84,7 +84,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'getting-started', width='100%', height=1200) ``` diff --git a/doc/python/heatmaps.md b/doc/python/heatmaps.md index c4d74f4e3a..34707d3cbf 100644 --- a/doc/python/heatmaps.md +++ b/doc/python/heatmaps.md @@ -102,7 +102,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'heatmaps', width='100%', height=1200) ``` diff --git a/doc/python/histograms.md b/doc/python/histograms.md index 78eab47193..b4ca0ee23a 100644 --- a/doc/python/histograms.md +++ b/doc/python/histograms.md @@ -109,7 +109,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'histograms', width='100%', height=1200) ``` diff --git a/doc/python/horizontal-vertical-shapes.md b/doc/python/horizontal-vertical-shapes.md index 02ec841723..7aa397cfb6 100644 --- a/doc/python/horizontal-vertical-shapes.md +++ b/doc/python/horizontal-vertical-shapes.md @@ -76,7 +76,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'horizontal-vertical-shapes', width='100%', height=1200) ``` @@ -95,9 +95,9 @@ import plotly.express as px df = px.data.stocks(indexed=True) fig = px.line(df) fig.add_hline(y=1, line_dash="dot", - annotation_text="Jan 1, 2018 baseline", + annotation_text="Jan 1, 2018 baseline", annotation_position="bottom right") -fig.add_vrect(x0="2018-09-24", x1="2018-12-18", +fig.add_vrect(x0="2018-09-24", x1="2018-12-18", annotation_text="decline", annotation_position="top left", fillcolor="green", opacity=0.25, line_width=0) fig.show() @@ -111,12 +111,12 @@ import plotly.express as px df = px.data.stocks(indexed=True) fig = px.line(df) fig.add_hline(y=1, line_dash="dot", - annotation_text="Jan 1, 2018 baseline", + annotation_text="Jan 1, 2018 baseline", annotation_position="bottom right", annotation_font_size=20, annotation_font_color="blue" ) -fig.add_vrect(x0="2018-09-24", x1="2018-12-18", +fig.add_vrect(x0="2018-09-24", x1="2018-12-18", annotation_text="decline", annotation_position="top left", annotation=dict(font_size=20, font_family="Times New Roman"), fillcolor="green", opacity=0.25, line_width=0) @@ -132,7 +132,7 @@ import plotly.express as px df = px.data.stocks(indexed=True) fig = px.line(df, facet_col="company", facet_col_wrap=2) fig.add_hline(y=1, line_dash="dot", row=3, col="all", - annotation_text="Jan 1, 2018 baseline", + annotation_text="Jan 1, 2018 baseline", annotation_position="bottom right") fig.add_vrect(x0="2018-09-24", x1="2018-12-18", row="all", col=1, annotation_text="decline", annotation_position="top left", @@ -176,11 +176,11 @@ fig.show() ``` -With [text labels on shapes](/python/shapes/#adding-text-labels-to-shapes), you can also add text labels to shapes other than lines and rectangles, and the labels can be added automatically to shapes drawn by the user. +With [text labels on shapes](/python/shapes/#adding-text-labels-to-shapes), you can also add text labels to shapes other than lines and rectangles, and the labels can be added automatically to shapes drawn by the user. ### Reference -More details are available about [layout shapes](/python/shapes/) and [annotations](/python/text-and-annotations). +More details are available about [layout shapes](/python/shapes/) and [annotations](/python/text-and-annotations). Reference documentation is also available for [`add_hline`](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html?highlight=add_hline#plotly.graph_objects.Figure.add_hline), [`add_vline`](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html?highlight=add_vline#plotly.graph_objects.Figure.add_vline), [`add_hrect`](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html?highlight=add_hrect#plotly.graph_objects.Figure.add_hrect), [`add_vrect`](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html?highlight=add_vrect#plotly.graph_objects.Figure.add_vrect). diff --git a/doc/python/hover-text-and-formatting.md b/doc/python/hover-text-and-formatting.md index 068095c69e..6ef621c437 100644 --- a/doc/python/hover-text-and-formatting.md +++ b/doc/python/hover-text-and-formatting.md @@ -93,7 +93,7 @@ Change the hovermode below and try hovering over the points: ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'hover-text-and-formatting', width='100%', height=1200) ``` diff --git a/doc/python/interactive-html-export.md b/doc/python/interactive-html-export.md index 461afe7f54..443427beb0 100644 --- a/doc/python/interactive-html-export.md +++ b/doc/python/interactive-html-export.md @@ -109,7 +109,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'interactive-html-export', width='100%', height=1200) ``` diff --git a/doc/python/legend.md b/doc/python/legend.md index d9042bb97a..30cc3236d5 100644 --- a/doc/python/legend.md +++ b/doc/python/legend.md @@ -199,7 +199,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'legend', width='100%', height=1200) ``` diff --git a/doc/python/line-and-scatter.md b/doc/python/line-and-scatter.md index 9ddaad8aac..0b6f56bc7e 100644 --- a/doc/python/line-and-scatter.md +++ b/doc/python/line-and-scatter.md @@ -94,7 +94,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'line-and-scatter', width='100%', height=1200) ``` diff --git a/doc/python/line-charts.md b/doc/python/line-charts.md index 840abdfa76..2762ae0852 100644 --- a/doc/python/line-charts.md +++ b/doc/python/line-charts.md @@ -67,7 +67,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true tags=[] from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'line-charts', width='100%', height=1200) ``` diff --git a/doc/python/marker-style.md b/doc/python/marker-style.md index 134e2c52a6..1e5c3c5edf 100644 --- a/doc/python/marker-style.md +++ b/doc/python/marker-style.md @@ -116,7 +116,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'marker-style', width='100%', height=1200) ``` diff --git a/doc/python/ml-knn.md b/doc/python/ml-knn.md index 28ff33469b..d4823594e2 100644 --- a/doc/python/ml-knn.md +++ b/doc/python/ml-knn.md @@ -245,7 +245,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'knn-classification', width='100%', height=1200) ``` diff --git a/doc/python/ml-regression.md b/doc/python/ml-regression.md index 5215058286..3b518b7990 100644 --- a/doc/python/ml-regression.md +++ b/doc/python/ml-regression.md @@ -100,7 +100,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'ml-regression', width='100%', height=1200) ``` diff --git a/doc/python/ml-roc-pr.md b/doc/python/ml-roc-pr.md index 8c4bd7e40d..21d1303fd4 100644 --- a/doc/python/ml-roc-pr.md +++ b/doc/python/ml-roc-pr.md @@ -128,7 +128,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'roc-and-pr-curves', width='100%', height=1200) ``` diff --git a/doc/python/multiple-axes.md b/doc/python/multiple-axes.md index 11cbf0261a..e895e4a879 100644 --- a/doc/python/multiple-axes.md +++ b/doc/python/multiple-axes.md @@ -84,7 +84,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'multiple-axes', width='100%', height=1200) ``` diff --git a/doc/python/network-graphs.md b/doc/python/network-graphs.md index ae47e9923c..b1b3fa067d 100644 --- a/doc/python/network-graphs.md +++ b/doc/python/network-graphs.md @@ -160,7 +160,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'network-graphs', width='100%', height=1200) ``` diff --git a/doc/python/pie-charts.md b/doc/python/pie-charts.md index c03e37aba6..1d3a01617d 100644 --- a/doc/python/pie-charts.md +++ b/doc/python/pie-charts.md @@ -72,7 +72,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'pie-charts', width='100%', height=1200) ``` diff --git a/doc/python/plot-data-from-csv.md b/doc/python/plot-data-from-csv.md index 1f1a30269b..f5ce145438 100644 --- a/doc/python/plot-data-from-csv.md +++ b/doc/python/plot-data-from-csv.md @@ -65,7 +65,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'plot-data-from-csv', width='100%', height=1200) ``` diff --git a/doc/python/plotly-express.md b/doc/python/plotly-express.md index 0aebc72dcc..ef83bff429 100644 --- a/doc/python/plotly-express.md +++ b/doc/python/plotly-express.md @@ -94,7 +94,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'plotly-express', width='100%', height=1200) ``` diff --git a/doc/python/renderers.md b/doc/python/renderers.md index bdf18301db..9a7b43a85b 100644 --- a/doc/python/renderers.md +++ b/doc/python/renderers.md @@ -239,7 +239,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'renderers', width='100%', height=1200) ``` diff --git a/doc/python/sankey-diagram.md b/doc/python/sankey-diagram.md index a014e5a508..d69262bdd3 100644 --- a/doc/python/sankey-diagram.md +++ b/doc/python/sankey-diagram.md @@ -113,7 +113,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'sankey-diagram', width='100%', height=1200) ``` diff --git a/doc/python/setting-graph-size.md b/doc/python/setting-graph-size.md index 717c25341d..51acb807c2 100644 --- a/doc/python/setting-graph-size.md +++ b/doc/python/setting-graph-size.md @@ -59,7 +59,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'setting-graph-size', width='100%', height=1200) ``` diff --git a/doc/python/shapes.md b/doc/python/shapes.md index f14e2e7d3d..410eb08aa8 100644 --- a/doc/python/shapes.md +++ b/doc/python/shapes.md @@ -78,7 +78,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'shapes', width='100%', height=1200) ``` diff --git a/doc/python/static-image-export.md b/doc/python/static-image-export.md index 2b31ba0bdd..34ae772a0a 100644 --- a/doc/python/static-image-export.md +++ b/doc/python/static-image-export.md @@ -158,7 +158,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'static-image-export', width='100%', height=1200) ``` diff --git a/doc/python/subplots.md b/doc/python/subplots.md index 6842a650b5..545c0090e1 100644 --- a/doc/python/subplots.md +++ b/doc/python/subplots.md @@ -220,7 +220,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'subplots', width='100%', height=1200) ``` diff --git a/doc/python/table.md b/doc/python/table.md index 36a7ebcd1d..e66f8d60c6 100644 --- a/doc/python/table.md +++ b/doc/python/table.md @@ -98,7 +98,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'table', width='100%', height=1200) ``` diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index 84521f34cd..7e31c1cde4 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -112,7 +112,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'text-and-annotations', width='100%', height=1200) ``` @@ -799,18 +799,18 @@ fig.update_layout( yref="container", y=0.005, # The "paper" x-coordinates lets us align this with either the right or left - # edge of the plot region. - # The code to align this flush with the right edge of the plot area is - # predictable and simple. + # edge of the plot region. + # The code to align this flush with the right edge of the plot area is + # predictable and simple. # Putting the title in the lower left corner, aligned with the left edge of the axis labeling would # require graph specific coordinate adjustments. xref="paper", xanchor="right", - x=1, + x=1, font=dict(size=12)), plot_bgcolor="white", - # We move the legend out of the right margin so the right-aligned note is + # We move the legend out of the right margin so the right-aligned note is # flush with the right most element of the graph. # Here we put the legend in a corner of the graph region # because it has consistent coordinates at all screen resolutions. @@ -822,18 +822,18 @@ fig.update_layout( borderwidth=1) ) -# Insert a title by repurposing an annotation +# Insert a title by repurposing an annotation fig.add_annotation( yref="paper", yanchor="bottom", - y=1.025, # y = 1 is the top of the plot area; the top is typically uncluttered, so placing + y=1.025, # y = 1 is the top of the plot area; the top is typically uncluttered, so placing # the bottom of the title slightly above the graph region works on a wide variety of graphs text="This title is a Plotly annotation", # Center the title horizontally over the plot area xref="paper", xanchor="center", - x=0.5, + x=0.5, showarrow=False, font=dict(size=18) diff --git a/doc/python/tick-formatting.md b/doc/python/tick-formatting.md index dafac06c58..e4282b7b09 100644 --- a/doc/python/tick-formatting.md +++ b/doc/python/tick-formatting.md @@ -89,7 +89,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'tick-formatting', width='100%', height=1200) ``` diff --git a/doc/python/tile-county-choropleth.md b/doc/python/tile-county-choropleth.md index 75b89acb30..b9b27d405c 100644 --- a/doc/python/tile-county-choropleth.md +++ b/doc/python/tile-county-choropleth.md @@ -112,7 +112,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'mapbox-county-choropleth', width='100%', height=1200) ``` diff --git a/doc/python/time-series.md b/doc/python/time-series.md index c55ffef7a4..83eedd56c5 100644 --- a/doc/python/time-series.md +++ b/doc/python/time-series.md @@ -70,7 +70,7 @@ Get started with [the official Dash docs](https://dash.plotly.com/installation) ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'time-series', width='100%', height=1200) ``` @@ -174,14 +174,14 @@ df = df.loc[(df["Date"] >= "2016-07-01") & (df["Date"] <= "2016-12-01")] fig = px.line(df, x='Date', y='AAPL.High') fig.update_xaxes(ticks= "outside", - ticklabelmode= "period", - tickcolor= "black", - ticklen=10, + ticklabelmode= "period", + tickcolor= "black", + ticklen=10, minor=dict( - ticklen=4, - dtick=7*24*60*60*1000, - tick0="2016-07-03", - griddash='dot', + ticklen=4, + dtick=7*24*60*60*1000, + tick0="2016-07-03", + griddash='dot', gridcolor='white') ) diff --git a/doc/python/troubleshooting.md b/doc/python/troubleshooting.md index 832abf47da..f0826f5c95 100644 --- a/doc/python/troubleshooting.md +++ b/doc/python/troubleshooting.md @@ -61,7 +61,7 @@ This is an example of a `plotly` graph correctly rendering inside `dash`: ```python hide_code=true from IPython.display import IFrame -snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-snippets/' +snippet_url = 'https://test-snippets-pp-0c64a1035941.herokuapp.com/python-docs-dash-snippets/' IFrame(snippet_url + 'renderers', width='100%', height=1200) ```