From 48b4cfe5a011985135068c04711fd340b50d4d83 Mon Sep 17 00:00:00 2001 From: Mateo Montero Date: Sat, 12 Mar 2022 11:43:15 -0300 Subject: [PATCH 1/8] Smoothening being applied in the "unnoised" data The smoothening was being applied in y, and not in y_noise. That makes no sense. --- doc/python/smoothing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/smoothing.md b/doc/python/smoothing.md index 7c977478625..9c42a5aa294 100644 --- a/doc/python/smoothing.md +++ b/doc/python/smoothing.md @@ -95,7 +95,7 @@ fig.add_trace(go.Scatter( fig.add_trace(go.Scatter( x=x, - y=signal.savgol_filter(y, + y=signal.savgol_filter(y_noise, 53, # window size used for filtering 3), # order of fitted polynomial mode='markers', From 217894becd292e8c22b75e97470e85697c605af0 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 14:08:58 -0400 Subject: [PATCH 2/8] clarify map type in titles --- doc/python/filled-area-on-mapbox.md | 2 +- doc/python/lines-on-mapbox.md | 4 ++-- doc/python/scattermapbox.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/python/filled-area-on-mapbox.md b/doc/python/filled-area-on-mapbox.md index be08fd35ade..8e0af02484b 100644 --- a/doc/python/filled-area-on-mapbox.md +++ b/doc/python/filled-area-on-mapbox.md @@ -26,7 +26,7 @@ jupyter: display_as: maps language: python layout: base - name: Filled Area on Maps + name: Filled Area on Tile Maps order: 4 page_type: example_index permalink: python/filled-area-tile-maps/ diff --git a/doc/python/lines-on-mapbox.md b/doc/python/lines-on-mapbox.md index f524d7b56db..47e1c57d1e5 100644 --- a/doc/python/lines-on-mapbox.md +++ b/doc/python/lines-on-mapbox.md @@ -26,7 +26,7 @@ jupyter: display_as: maps language: python layout: base - name: Lines on Maps + name: Lines on Tile Maps order: 3 page_type: example_index permalink: python/lines-on-tile-maps/ @@ -34,7 +34,7 @@ jupyter: thumbnail: thumbnail/line_mapbox.jpg --- -### Lines on maps using Plotly Express +### Lines on tile maps using Plotly Express To draw a line on a map, you either can use `px.line_map` in Plotly Express, or `go.Scattermap` in Plotly Graph Objects. Here's an example of drawing a line on a tile-based map using Plotly Express. diff --git a/doc/python/scattermapbox.md b/doc/python/scattermapbox.md index 4e209b898cd..764daaf34f2 100644 --- a/doc/python/scattermapbox.md +++ b/doc/python/scattermapbox.md @@ -26,7 +26,7 @@ jupyter: display_as: maps language: python layout: base - name: Scatter Plots on Mapbox + name: Scatter Plots on Tile Maps order: 10 page_type: u-guide permalink: python/tile-scatter-maps/ From 30d082e3486ea9c14149531a6db2e2801b8d705e Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 14:09:05 -0400 Subject: [PATCH 3/8] fix typo --- doc/python/mapbox-density-heatmaps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/mapbox-density-heatmaps.md b/doc/python/mapbox-density-heatmaps.md index ea35fa3aa8c..e694c699437 100644 --- a/doc/python/mapbox-density-heatmaps.md +++ b/doc/python/mapbox-density-heatmaps.md @@ -72,7 +72,7 @@ fig.show() > Mapbox traces are deprecated and may be removed in a future version of Plotly.py. -The earlier examples using `px.density_mapbox` and `go.Densitymap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24. These trace types are now the recommended way to make tile-based density heatmaps. There are also traces that use [Mapbox](https://docs.mapbox.com): `density_mapbox` and `go.Densitymapbox`. +The earlier examples using `px.density_map` and `go.Densitymap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24. These trace types are now the recommended way to make tile-based density heatmaps. There are also traces that use [Mapbox](https://docs.mapbox.com): `density_mapbox` and `go.Densitymapbox`. To use these trace types, in some cases you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information. From e1a0a1e71aafe1d8b6c0c20ebaf45c31eea7769d Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 14:10:01 -0400 Subject: [PATCH 4/8] fix rendering --- doc/python/scattermapbox.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/python/scattermapbox.md b/doc/python/scattermapbox.md index 764daaf34f2..82f54d90f3b 100644 --- a/doc/python/scattermapbox.md +++ b/doc/python/scattermapbox.md @@ -303,6 +303,7 @@ fig.show() ## Mapbox Maps > Mapbox traces are deprecated and may be removed in a future version of Plotly.py. + The earlier examples using `px.scatter_map` and `go.Scattermap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24 and are now the recommended way to create scatter plots on tile-based maps. There are also traces that use [Mapbox](https://docs.mapbox.com): `px.scatter_mapbox` and `go.Scattermapbox` To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information. From bd63f8dd868d81ae5a9a610a859e7846dac7e233 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 14:16:49 -0400 Subject: [PATCH 5/8] fix typo --- doc/python/map-configuration.md | 2 +- doc/python/mapbox-layers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python/map-configuration.md b/doc/python/map-configuration.md index 6c296d34a83..3f4553b3f7f 100644 --- a/doc/python/map-configuration.md +++ b/doc/python/map-configuration.md @@ -39,7 +39,7 @@ Plotly supports two different kinds of maps: - **[Tile-based maps](https://en.wikipedia.org/wiki/Tiled_web_map)** -If your figure is created with a `px.scatter_map`, `px.scatter_mapbox`, `px.line_map`, `px.line_mapbox`, `px.choropleth_map`, `px.choropleth_mapbox`, `px.density_map`, or `px.density_mapbox` function or otherwise contains one or more traces of type `go.Scattermap`, `go.Scattermapbox`,`go.Choroplethmap`, `go.Choroplethmapbox`, `go.Densitymap`, or `go.Densitymapbox` the `layout.map` object in your figure contains configuration information for the map itself. +If your figure is created with a `px.scatter_map`, `px.scatter_mapbox`, `px.line_map`, `px.line_mapbox`, `px.choropleth_map`, `px.choropleth_mapbox`, `px.density_map`, or `px.density_mapbox` function or otherwise contains one or more traces of type `go.Scattermap`, `go.Scattermapbox`, `go.Choroplethmap`, `go.Choroplethmapbox`, `go.Densitymap`, or `go.Densitymapbox`, the `layout.map` object in your figure contains configuration information for the map itself. - **Outline-based maps** diff --git a/doc/python/mapbox-layers.md b/doc/python/mapbox-layers.md index 936b67c925e..6e11ef71822 100644 --- a/doc/python/mapbox-layers.md +++ b/doc/python/mapbox-layers.md @@ -42,7 +42,7 @@ Plotly supports two different kinds of maps: - **[Tile-based maps](https://en.wikipedia.org/wiki/Tiled_web_map)** -If your figure is created with a `px.scatter_map`, `px_scatter_mapbox`, `px.line_map`, `px.line_mapbox`, `px.choropleth_map`, `px.choropleth_mapbox`, `px.density_map`, or `px.density_mapbox` function or otherwise contains one or more traces of type `go.Scattermap`, `go.Scattermapbox`,`go.Choroplethmap`, `go.Choroplethmapbox`, `go.Densitymap`, or `go.Densitymapbox` the `layout.map` or `layout.mapbox` object in your figure contains configuration information for the map itself. +If your figure is created with a `px.scatter_map`, `px_scatter_mapbox`, `px.line_map`, `px.line_mapbox`, `px.choropleth_map`, `px.choropleth_mapbox`, `px.density_map`, or `px.density_mapbox` function or otherwise contains one or more traces of type `go.Scattermap`, `go.Scattermapbox`, `go.Choroplethmap`, `go.Choroplethmapbox`, `go.Densitymap`, or `go.Densitymapbox`, the `layout.map` or `layout.mapbox` object in your figure contains configuration information for the map itself. - **Outline-based maps** From 7ad383200962f324d026c94df56b53d475930b5e Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 15:15:00 -0400 Subject: [PATCH 6/8] Update mapbox-layers.md --- doc/python/mapbox-layers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python/mapbox-layers.md b/doc/python/mapbox-layers.md index 6e11ef71822..a60ec6646d7 100644 --- a/doc/python/mapbox-layers.md +++ b/doc/python/mapbox-layers.md @@ -29,8 +29,8 @@ jupyter: name: Tile Map Layers order: 9 page_type: u-guide - permalink: /python/tile-map-layers/ - redirect_from: /python/mapbox-layers/ + permalink: python/tile-map-layers/ + redirect_from: python/mapbox-layers/ thumbnail: thumbnail/mapbox-layers.png --- From fde93a389866f079c33e1925b5843372184ac27f Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Thu, 29 Aug 2024 15:17:48 -0400 Subject: [PATCH 7/8] Update plotly.graph_objects.rst --- doc/apidoc/plotly.graph_objects.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/apidoc/plotly.graph_objects.rst b/doc/apidoc/plotly.graph_objects.rst index 770b60fe763..6c57508f6cb 100644 --- a/doc/apidoc/plotly.graph_objects.rst +++ b/doc/apidoc/plotly.graph_objects.rst @@ -99,6 +99,9 @@ Map Traces Scattergeo Choropleth + Scattermap + Choroplethmap + Densitymap Scattermapbox Choroplethmapbox Densitymapbox From dc1a70b66ddb8d5e16a3fd586ee62ebf41f02814 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 30 Aug 2024 12:00:06 -0400 Subject: [PATCH 8/8] remove mapbox name from files --- doc/python/{mapbox-density-heatmaps.md => density-heatmaps.md} | 0 doc/python/{filled-area-on-mapbox.md => filled-area-tile-maps.md} | 0 doc/python/{lines-on-mapbox.md => lines-on-tile-maps.md} | 0 .../{mapbox-county-choropleth.md => tile-county-choropleth.md} | 0 doc/python/{mapbox-layers.md => tile-map-layers.md} | 0 doc/python/{scattermapbox.md => tile-scatter-maps.md} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename doc/python/{mapbox-density-heatmaps.md => density-heatmaps.md} (100%) rename doc/python/{filled-area-on-mapbox.md => filled-area-tile-maps.md} (100%) rename doc/python/{lines-on-mapbox.md => lines-on-tile-maps.md} (100%) rename doc/python/{mapbox-county-choropleth.md => tile-county-choropleth.md} (100%) rename doc/python/{mapbox-layers.md => tile-map-layers.md} (100%) rename doc/python/{scattermapbox.md => tile-scatter-maps.md} (100%) diff --git a/doc/python/mapbox-density-heatmaps.md b/doc/python/density-heatmaps.md similarity index 100% rename from doc/python/mapbox-density-heatmaps.md rename to doc/python/density-heatmaps.md diff --git a/doc/python/filled-area-on-mapbox.md b/doc/python/filled-area-tile-maps.md similarity index 100% rename from doc/python/filled-area-on-mapbox.md rename to doc/python/filled-area-tile-maps.md diff --git a/doc/python/lines-on-mapbox.md b/doc/python/lines-on-tile-maps.md similarity index 100% rename from doc/python/lines-on-mapbox.md rename to doc/python/lines-on-tile-maps.md diff --git a/doc/python/mapbox-county-choropleth.md b/doc/python/tile-county-choropleth.md similarity index 100% rename from doc/python/mapbox-county-choropleth.md rename to doc/python/tile-county-choropleth.md diff --git a/doc/python/mapbox-layers.md b/doc/python/tile-map-layers.md similarity index 100% rename from doc/python/mapbox-layers.md rename to doc/python/tile-map-layers.md diff --git a/doc/python/scattermapbox.md b/doc/python/tile-scatter-maps.md similarity index 100% rename from doc/python/scattermapbox.md rename to doc/python/tile-scatter-maps.md