diff --git a/test/percy/plotly-express.py b/test/percy/plotly-express.py index 49d3fdb8249..428e30572e4 100644 --- a/test/percy/plotly-express.py +++ b/test/percy/plotly-express.py @@ -384,7 +384,7 @@ carshare = px.data.carshare() -fig = px.scatter_mapbox( +fig = px.scatter_map( carshare, lat="centroid_lat", lon="centroid_lon", @@ -394,14 +394,12 @@ size_max=15, zoom=10, ) -fig.write_html(os.path.join(dir_name, "scatter_mapbox.html")) +fig.write_html(os.path.join(dir_name, "scatter_map.html")) carshare = px.data.carshare() -fig = px.line_mapbox( - carshare, lat="centroid_lat", lon="centroid_lon", color="peak_hour" -) -fig.write_html(os.path.join(dir_name, "line_mapbox.html")) +fig = px.line_map(carshare, lat="centroid_lat", lon="centroid_lon", color="peak_hour") +fig.write_html(os.path.join(dir_name, "line_map.html")) sample_geojson = { @@ -419,23 +417,23 @@ } ], } -fig = px.choropleth_mapbox( +fig = px.choropleth_map( geojson=sample_geojson, locations=["the_polygon"], color=[10], zoom=6, ) -fig.write_html(os.path.join(dir_name, "choropleth_mapbox.html"), auto_play=False) +fig.write_html(os.path.join(dir_name, "choropleth_map.html"), auto_play=False) carshare = px.data.carshare() -fig = px.density_mapbox( +fig = px.density_map( carshare, lat="centroid_lat", lon="centroid_lon", z="peak_hour", ) -fig.write_html(os.path.join(dir_name, "density_mapbox.html"), auto_play=False) +fig.write_html(os.path.join(dir_name, "density_map.html"), auto_play=False) gapminder = px.data.gapminder()