Skip to content

Commit f1e0c7a

Browse files
committed
update tests to use new maps
1 parent 3719c68 commit f1e0c7a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/percy/plotly-express.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384

385385

386386
carshare = px.data.carshare()
387-
fig = px.scatter_mapbox(
387+
fig = px.scatter_map(
388388
carshare,
389389
lat="centroid_lat",
390390
lon="centroid_lon",
@@ -394,14 +394,14 @@
394394
size_max=15,
395395
zoom=10,
396396
)
397-
fig.write_html(os.path.join(dir_name, "scatter_mapbox.html"))
397+
fig.write_html(os.path.join(dir_name, "scatter_map.html"))
398398

399399

400400
carshare = px.data.carshare()
401-
fig = px.line_mapbox(
401+
fig = px.line_map(
402402
carshare, lat="centroid_lat", lon="centroid_lon", color="peak_hour"
403403
)
404-
fig.write_html(os.path.join(dir_name, "line_mapbox.html"))
404+
fig.write_html(os.path.join(dir_name, "line_map.html"))
405405

406406

407407
sample_geojson = {
@@ -419,23 +419,23 @@
419419
}
420420
],
421421
}
422-
fig = px.choropleth_mapbox(
422+
fig = px.choropleth_map(
423423
geojson=sample_geojson,
424424
locations=["the_polygon"],
425425
color=[10],
426426
zoom=6,
427427
)
428-
fig.write_html(os.path.join(dir_name, "choropleth_mapbox.html"), auto_play=False)
428+
fig.write_html(os.path.join(dir_name, "choropleth_map.html"), auto_play=False)
429429

430430

431431
carshare = px.data.carshare()
432-
fig = px.density_mapbox(
432+
fig = px.density_map(
433433
carshare,
434434
lat="centroid_lat",
435435
lon="centroid_lon",
436436
z="peak_hour",
437437
)
438-
fig.write_html(os.path.join(dir_name, "density_mapbox.html"), auto_play=False)
438+
fig.write_html(os.path.join(dir_name, "density_map.html"), auto_play=False)
439439

440440

441441
gapminder = px.data.gapminder()

0 commit comments

Comments
 (0)