File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 384384
385385
386386carshare = px .data .carshare ()
387- fig = px .scatter_mapbox (
387+ fig = px .scatter_map (
388388 carshare ,
389389 lat = "centroid_lat" ,
390390 lon = "centroid_lon" ,
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
400400carshare = 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
407407sample_geojson = {
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
431431carshare = 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
441441gapminder = px .data .gapminder ()
You can’t perform that action at this time.
0 commit comments