From 69a946e64475d090e7d7b2accec1646aa0a5e0c8 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 29 Mar 2024 11:23:06 -0400 Subject: [PATCH 01/10] Update webgl-vs-svg.md --- doc/python/webgl-vs-svg.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/python/webgl-vs-svg.md b/doc/python/webgl-vs-svg.md index 5c6fc457bf2..386ea40e1cd 100644 --- a/doc/python/webgl-vs-svg.md +++ b/doc/python/webgl-vs-svg.md @@ -72,10 +72,12 @@ To use it, in the environment where your Plotly figures are being rendered, load In a Jupyter notebook environment that supports magic commands, you can load it with the [HTML magic command](https://ipython.readthedocs.io/en/stable/interactive/magics.html#cellmagic-html): + ``` %%html ``` + ### WebGL for Scatter Performance From 8d15a4ccb8c6f687efa55bc68773167f100ded08 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 1 May 2024 13:39:40 -0400 Subject: [PATCH 02/10] Update text-and-annotations.md --- doc/python/text-and-annotations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index 7f721651eb6..108de59c16b 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -353,7 +353,7 @@ fig.show() *New in 5.22* -You can also configure a font's `variant`, `style`, and `weight` on `textfont`. Here, we configure an `italic` style on the first bar, `bold` weight on the second, and`small-caps` as the font variant on the third. +You can also configure a font's `variant`, `style`, and `weight` on `textfont`. Here, we configure an `italic` style on the first bar, `bold` weight on the second, and `small-caps` as the font variant on the third. ```python import plotly.graph_objects as go From 6f7d99eafcc658830444eab443a9d075a95eb8c5 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Mon, 27 May 2024 14:11:40 -0400 Subject: [PATCH 03/10] fix links --- doc/python/multiple-axes.md | 4 ++-- doc/python/subplots.md | 4 ++-- doc/python/text-and-annotations.md | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/python/multiple-axes.md b/doc/python/multiple-axes.md index 9b2095a6389..5bbdeda3c93 100644 --- a/doc/python/multiple-axes.md +++ b/doc/python/multiple-axes.md @@ -357,7 +357,7 @@ fig.show() *New in 5.13* -With overlayed axes, each axis by default has its own number of ticks. You can sync the number of ticks on a cartesian axis with another one it overlays by setting `tickmode="sync"`. In this example, we sync the ticks on the `"Total bill amount"` axis with the `"Total number of diners"` axis that it overlays. +With overlayed axes, each axis by default has its own number of ticks. You can sync the number of ticks on a cartesian axis with another one it overlays by setting `tickmode="sync"`. In this example, we sync the ticks on the `"Total bill amount"` axis with the `"Total number of diners"` axis that it overlays. ```python import plotly.graph_objects as go @@ -415,4 +415,4 @@ fig.show() ``` #### Reference -All of the y-axis properties are found here: https://plotly.com/python/reference/YAxis/. For more information on creating subplots see the [Subplots in Python](/python/subplots/) section. +All of the y-axis properties are found here: https://plotly.com/python/reference/layout/yaxis/. For more information on creating subplots see the [Subplots in Python](/python/subplots/) section. diff --git a/doc/python/subplots.md b/doc/python/subplots.md index 5d9c49c55ae..6842a650b50 100644 --- a/doc/python/subplots.md +++ b/doc/python/subplots.md @@ -619,8 +619,8 @@ fig = make_subplots(2, 3, horizontal_spacing=0.1) ``` #### Reference -All of the x-axis properties are found here: https://plotly.com/python/reference/XAxis/ -All of the y-axis properties are found here: https://plotly.com/python/reference/YAxis/ +All of the x-axis properties are found here: https://plotly.com/python/reference/layout/xaxis/ +All of the y-axis properties are found here: https://plotly.com/python/reference/layout/yaxis/ ```python from plotly.subplots import make_subplots diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index 108de59c16b..2b3a68c5365 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -122,7 +122,7 @@ IFrame(snippet_url + 'text-and-annotations', width='100%', height=1200) ### 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. +For the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemaps) 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. Here is a bar chart with the default behavior which will scale down text to fit. @@ -131,7 +131,7 @@ Here is a bar chart with the default behavior which will scale down text to fit. import plotly.express as px df = px.data.gapminder(year=2007) -fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', +fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', title="Default behavior: some text is tiny") fig.update_traces(textposition='inside') fig.show() @@ -143,7 +143,7 @@ Here is the same figure with uniform text applied: the text for all bars is the import plotly.express as px df = px.data.gapminder(year=2007) -fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', +fig = px.bar(df, x='continent', y='pop', color="lifeExp", text='country', title="Uniform Text: min size is 8, hidden if can't fit") fig.update_traces(textposition='inside') fig.update_layout(uniformtext_minsize=8, uniformtext_mode='hide') @@ -162,7 +162,7 @@ fig.show() ### Controlling Maximum Text Size -The `textfont_size` parameter of the the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemap-charts) traces can be used to set the **maximum font size** used in the chart. Note that the `textfont` parameter sets the `insidetextfont` and `outsidetextfont` parameter, which can also be set independently. +The `textfont_size` parameter of the the [pie](/python/pie-charts), [bar](/python/bar-charts)-like, [sunburst](/python/sunburst-charts) and [treemap](/python/treemaps) traces can be used to set the **maximum font size** used in the chart. Note that the `textfont` parameter sets the `insidetextfont` and `outsidetextfont` parameter, which can also be set independently. ```python import plotly.express as px From d9fb929745a967d9d4516efbd2d33f1a089a0b8d Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Mon, 27 May 2024 19:10:58 -0400 Subject: [PATCH 04/10] remove broken link --- doc/python/static-image-export.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/static-image-export.md b/doc/python/static-image-export.md index 48bb28366ae..b0334597694 100644 --- a/doc/python/static-image-export.md +++ b/doc/python/static-image-export.md @@ -101,7 +101,7 @@ if not os.path.exists("images"): os.mkdir("images") ``` -If you are running this notebook live, click to [open the output directory](./images) so you can examine the images as they are written. +If you are running this notebook live, click to open the output directory so you can examine the images as they are written. #### Raster Formats: PNG, JPEG, and WebP From 12330cf88992f47fb0eee8e59abb62f17d413643 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 30 May 2024 15:53:24 -0400 Subject: [PATCH 05/10] add /generated/generated to renames --- doc/apidoc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/apidoc/Makefile b/doc/apidoc/Makefile index 06e5fba7bb3..0e5987301d9 100644 --- a/doc/apidoc/Makefile +++ b/doc/apidoc/Makefile @@ -36,7 +36,7 @@ help: # Remove files which were added only for docstring generation rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py ../../packages/python/plotly/plotly/colors/colorbrewer.py ../../packages/python/plotly/plotly/colors/carto.py ../../packages/python/plotly/plotly/colors/cmocean.py rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors/colorbrewer.py ../../packages/python/plotly/plotly/express/colors/carto.py ../../packages/python/plotly/plotly/express/colors/cmocean.py - rename 's/graph_objs/graph_objects/' _build/html/*.html _build/html/generated/*.html + rename 's/graph_objs/graph_objects/' _build/html/*.html _build/html/generated/*.html _build/html/generated/generated/*.html mv _build/html/generated/plotly.graph_objs.html _build/html/generated/plotly.graph_objects.html sed -i 's/graph_objs/graph_objects/g' _build/html/*.html sed -i 's/graph_objs/graph_objects/g' _build/html/*.inv From b8671e2866e4fc19ee587febcc7bbb52421ae66f Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Mon, 3 Jun 2024 13:27:01 -0400 Subject: [PATCH 06/10] Merge pull request #4624 from plotly/specify-image Specify image version for build --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2973d204991..913d3b6d40f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -374,7 +374,7 @@ jobs: full_build: docker: - - image: continuumio/miniconda3 + - image: continuumio/miniconda3:24.3.0-0 environment: LANG: en_US.UTF-8 resource_class: large @@ -599,3 +599,4 @@ workflows: - python_38_orca - python_39_percy - build-doc + From b16445993ad1779d7c5d0172c587a5133ccd2ee3 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 4 Jun 2024 10:26:06 -0400 Subject: [PATCH 07/10] fix links --- doc/python/network-graphs.md | 2 +- doc/python/peak-finding.md | 2 +- doc/python/smoothing.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/python/network-graphs.md b/doc/python/network-graphs.md index 6046fdd4728..efff973bc33 100644 --- a/doc/python/network-graphs.md +++ b/doc/python/network-graphs.md @@ -134,7 +134,7 @@ fig = go.Figure(data=[edge_trace, node_trace], hovermode='closest', margin=dict(b=20,l=5,r=5,t=40), annotations=[ dict( - text="Python code: https://plotly.com/ipython-notebooks/network-graphs/", + text="Python code: https://plotly.com/python/v3/ipython-notebooks/network-graphs/", showarrow=False, xref="paper", yref="paper", x=0.005, y=-0.002 ) ], diff --git a/doc/python/peak-finding.md b/doc/python/peak-finding.md index f04375af7ec..1449afb44c5 100644 --- a/doc/python/peak-finding.md +++ b/doc/python/peak-finding.md @@ -36,7 +36,7 @@ jupyter: #### Imports -The tutorial below imports [Pandas](https://plotly.com/pandas/intro-to-pandas-tutorial/), and [SciPy](https://www.scipy.org/). +The tutorial below imports [Pandas](https://pandas.pydata.org/docs/user_guide/10min.html), and [SciPy](https://www.scipy.org/). ```python import pandas as pd diff --git a/doc/python/smoothing.md b/doc/python/smoothing.md index 7c977478625..7ad484f1e69 100644 --- a/doc/python/smoothing.md +++ b/doc/python/smoothing.md @@ -36,7 +36,7 @@ jupyter: #### Imports -The tutorial below imports [NumPy](http://www.numpy.org/), [Pandas](https://plotly.com/pandas/intro-to-pandas-tutorial/), [SciPy](https://www.scipy.org/) and [Plotly](https://plotly.com/python/getting-started/). +The tutorial below imports [NumPy](http://www.numpy.org/), [Pandas](https://pandas.pydata.org/docs/user_guide/10min.html), [SciPy](https://www.scipy.org/) and [Plotly](https://plotly.com/python/getting-started/). ```python import plotly.graph_objects as go From 7a28818f6c3fc3b80cce853c0ad60121acec57b2 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 4 Jun 2024 11:35:12 -0400 Subject: [PATCH 08/10] Update doc/python/network-graphs.md --- doc/python/network-graphs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/network-graphs.md b/doc/python/network-graphs.md index efff973bc33..9d2f3fec2e2 100644 --- a/doc/python/network-graphs.md +++ b/doc/python/network-graphs.md @@ -134,7 +134,7 @@ fig = go.Figure(data=[edge_trace, node_trace], hovermode='closest', margin=dict(b=20,l=5,r=5,t=40), annotations=[ dict( - text="Python code: https://plotly.com/python/v3/ipython-notebooks/network-graphs/", + text="Python code: https://plotly.com/python/network-graphs/", showarrow=False, xref="paper", yref="paper", x=0.005, y=-0.002 ) ], From 480800008add27c41c29d63afa3227d41ff5dbd5 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 10 Jul 2024 11:15:24 -0400 Subject: [PATCH 09/10] Update configuration-options.md --- doc/python/configuration-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/configuration-options.md b/doc/python/configuration-options.md index 52dcc8764ec..55da59d9ac2 100644 --- a/doc/python/configuration-options.md +++ b/doc/python/configuration-options.md @@ -252,7 +252,7 @@ fig.show() *New in v4.7* -Some modebar buttons of Cartesian plots are optional and have to be added explicitly, using the `modeBarButtonsToAdd` config attribute. These buttons are used for drawing or erasing shapes. See [the tutorial on shapes and shape drawing](python/shapes#drawing-shapes-on-cartesian-plots) for more details. +Some modebar buttons of Cartesian plots are optional and have to be added explicitly, using the `modeBarButtonsToAdd` config attribute. These buttons are used for drawing or erasing shapes. See [the tutorial on shapes and shape drawing](/python/shapes#drawing-shapes-on-cartesian-plots) for more details. ```python import plotly.express as px From 04378eb68107746fc6d68dbf12f10be15eb1b728 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Wed, 10 Jul 2024 11:16:40 -0400 Subject: [PATCH 10/10] fix anchor --- doc/python/configuration-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/configuration-options.md b/doc/python/configuration-options.md index 55da59d9ac2..1b884b84786 100644 --- a/doc/python/configuration-options.md +++ b/doc/python/configuration-options.md @@ -252,7 +252,7 @@ fig.show() *New in v4.7* -Some modebar buttons of Cartesian plots are optional and have to be added explicitly, using the `modeBarButtonsToAdd` config attribute. These buttons are used for drawing or erasing shapes. See [the tutorial on shapes and shape drawing](/python/shapes#drawing-shapes-on-cartesian-plots) for more details. +Some modebar buttons of Cartesian plots are optional and have to be added explicitly, using the `modeBarButtonsToAdd` config attribute. These buttons are used for drawing or erasing shapes. See [the tutorial on shapes and shape drawing](/python/shapes#drawing-shapes-with-a-mouse-on-cartesian-plots) for more details. ```python import plotly.express as px