|
| 1 | +from warnings import warn |
| 2 | + |
1 | 3 | from ._core import make_figure
|
2 | 4 | from ._doc import make_docstring
|
3 | 5 | import plotly.graph_objs as go
|
@@ -1415,9 +1417,18 @@ def scatter_mapbox(
|
1415 | 1417 | height=None,
|
1416 | 1418 | ) -> go.Figure:
|
1417 | 1419 | """
|
| 1420 | + *scatter_mapbox* is deprecated! Use *scatter_map* instead. |
| 1421 | + Learn more at: https://plotly.com/python/mapbox-to-maplibre/ |
1418 | 1422 | In a Mapbox scatter plot, each row of `data_frame` is represented by a
|
1419 | 1423 | symbol mark on a Mapbox map.
|
1420 | 1424 | """
|
| 1425 | + warn( |
| 1426 | + "*scatter_mapbox* is deprecated!" |
| 1427 | + + " Use *scatter_map* instead." |
| 1428 | + + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", |
| 1429 | + stacklevel=2, |
| 1430 | + category=DeprecationWarning, |
| 1431 | + ) |
1421 | 1432 | return make_figure(args=locals(), constructor=go.Scattermapbox)
|
1422 | 1433 |
|
1423 | 1434 |
|
@@ -1453,9 +1464,18 @@ def choropleth_mapbox(
|
1453 | 1464 | height=None,
|
1454 | 1465 | ) -> go.Figure:
|
1455 | 1466 | """
|
| 1467 | + *choropleth_mapbox* is deprecated! Use *choropleth_map* instead. |
| 1468 | + Learn more at: https://plotly.com/python/mapbox-to-maplibre/ |
1456 | 1469 | In a Mapbox choropleth map, each row of `data_frame` is represented by a
|
1457 | 1470 | colored region on a Mapbox map.
|
1458 | 1471 | """
|
| 1472 | + warn( |
| 1473 | + "*choropleth_mapbox* is deprecated!" |
| 1474 | + + " Use *choropleth_map* instead." |
| 1475 | + + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", |
| 1476 | + stacklevel=2, |
| 1477 | + category=DeprecationWarning, |
| 1478 | + ) |
1459 | 1479 | return make_figure(args=locals(), constructor=go.Choroplethmapbox)
|
1460 | 1480 |
|
1461 | 1481 |
|
@@ -1489,9 +1509,18 @@ def density_mapbox(
|
1489 | 1509 | height=None,
|
1490 | 1510 | ) -> go.Figure:
|
1491 | 1511 | """
|
| 1512 | + *density_mapbox* is deprecated! Use *density_map* instead. |
| 1513 | + Learn more at: https://plotly.com/python/mapbox-to-maplibre/ |
1492 | 1514 | In a Mapbox density map, each row of `data_frame` contributes to the intensity of
|
1493 | 1515 | the color of the region around the corresponding point on the map
|
1494 | 1516 | """
|
| 1517 | + warn( |
| 1518 | + "*density_mapbox* is deprecated!" |
| 1519 | + + " Use *density_map* instead." |
| 1520 | + + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", |
| 1521 | + stacklevel=2, |
| 1522 | + category=DeprecationWarning, |
| 1523 | + ) |
1495 | 1524 | return make_figure(
|
1496 | 1525 | args=locals(), constructor=go.Densitymapbox, trace_patch=dict(radius=radius)
|
1497 | 1526 | )
|
@@ -1526,9 +1555,18 @@ def line_mapbox(
|
1526 | 1555 | height=None,
|
1527 | 1556 | ) -> go.Figure:
|
1528 | 1557 | """
|
| 1558 | + *line_mapbox* is deprecated! Use *line_map* instead. |
| 1559 | + Learn more at: https://plotly.com/python/mapbox-to-maplibre/ |
1529 | 1560 | In a Mapbox line plot, each row of `data_frame` is represented as
|
1530 | 1561 | a vertex of a polyline mark on a Mapbox map.
|
1531 | 1562 | """
|
| 1563 | + warn( |
| 1564 | + "*line_mapbox* is deprecated!" |
| 1565 | + + " Use *line_map* instead." |
| 1566 | + + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", |
| 1567 | + stacklevel=2, |
| 1568 | + category=DeprecationWarning, |
| 1569 | + ) |
1532 | 1570 | return make_figure(args=locals(), constructor=go.Scattermapbox)
|
1533 | 1571 |
|
1534 | 1572 |
|
|
0 commit comments