You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets the maximum delay between two consecutive clicks to be interpreted as a double-click in milliseconds. This is the time interval between first mousedown and second mouseup. The default timing is 300 ms (less than half a second).
308
-
This setting propagates to all on-subplot double clicks (except for `geo` and `mapbox`).
308
+
This setting propagates to all on-subplot double clicks (except for `geo` and `map`).
> Mapbox traces are deprecated and may be removed in a future version of Plotly.py.
74
-
75
-
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`.
76
-
77
-
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.
78
-
79
-
Here's one of the earlier examples rewritten to use `px.density_mapbox`.
#### Stamen Terrain base map with Mapbox (Stadia Maps token needed): density heatmap with `plotly.express`
96
-
97
-
Some base maps require a token. To use "stamen" base maps, you'll need a [Stadia Maps](https://www.stadiamaps.com) token, which you can provide to the `mapbox_accesstoken` parameter on `fig.update_layout`. Here, we have the token saved in a file called `.mapbox_token`, load it in to the variable `token`, and then pass it to `mapbox_accesstoken`.
98
-
99
-
```python
100
-
import plotly.express as px
101
-
import pandas as pd
102
-
103
-
token =open(".mapbox_token").read() # you will need your own token
See [function reference for `px.(density_map)`](https://plotly.com/python-api-reference/generated/plotly.express.density_mapbox) or https://plotly.com/python/reference/densitymap/ for available attribute options.
73
+
See [function reference for `px.(density_map)`](https://plotly.com/python-api-reference/generated/plotly.express.density_map) or https://plotly.com/python/reference/densitymap/ for available attribute options.
120
74
121
-
For Mapbox-based maps, see [function reference for `px.(density_mapbox)`](https://plotly.com/python-api-reference/generated/plotly.express.density_mapbox) or https://plotly.com/python/reference/densitymapbox/.
Copy file name to clipboardExpand all lines: doc/python/filled-area-tile-maps.md
+1-30Lines changed: 1 addition & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,36 +134,7 @@ fig.update_layout(
134
134
fig.show()
135
135
```
136
136
137
-
<!-- #region -->
138
-
### Mapbox Maps
139
-
140
-
> Mapbox traces are deprecated and may be removed in a future version of Plotly.py.
141
-
142
-
The earlier examples using `go.Scattermap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. This trace was introduced in Plotly.py 5.24 and is now the recommended way to draw filled areas on tile-based maps. There is also a trace that uses [Mapbox](https://docs.mapbox.com), called `go.Scattermapbox`.
143
-
144
-
To use the `Scattermapbox` trace type, 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.
145
-
146
-
Here's one of the earlier examples rewritten to use `Scattermapbox`.
147
-
148
-
```python
149
-
import plotly.graph_objects as go
150
-
151
-
fig = go.Figure(go.Scattermapbox(
152
-
fill="toself",
153
-
lon= [-74, -70, -70, -74], lat= [47, 47, 45, 45],
154
-
marker= { 'size': 10, 'color': "orange" }))
155
-
156
-
fig.update_layout(
157
-
mapbox= {
158
-
'style': "open-street-map",
159
-
'center': {'lon': -73, 'lat': 46 },
160
-
'zoom': 5},
161
-
showlegend=False)
162
-
163
-
fig.show()
164
-
```
165
-
<!-- #endregion -->
166
137
167
138
#### Reference
168
139
169
-
See https://plotly.com/python/reference/scattermap/ for available attribute options, or for `go.Scattermapbox`, see https://plotly.com/python/reference/scattermapbox/.
140
+
See https://plotly.com/python/reference/scattermap/ for available attribute options.
0 commit comments