File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 384
384
385
385
386
386
carshare = px .data .carshare ()
387
- fig = px .scatter_mapbox (
387
+ fig = px .scatter_map (
388
388
carshare ,
389
389
lat = "centroid_lat" ,
390
390
lon = "centroid_lon" ,
394
394
size_max = 15 ,
395
395
zoom = 10 ,
396
396
)
397
- fig .write_html (os .path .join (dir_name , "scatter_mapbox .html" ))
397
+ fig .write_html (os .path .join (dir_name , "scatter_map .html" ))
398
398
399
399
400
400
carshare = px .data .carshare ()
401
- fig = px .line_mapbox (
401
+ fig = px .line_map (
402
402
carshare , lat = "centroid_lat" , lon = "centroid_lon" , color = "peak_hour"
403
403
)
404
- fig .write_html (os .path .join (dir_name , "line_mapbox .html" ))
404
+ fig .write_html (os .path .join (dir_name , "line_map .html" ))
405
405
406
406
407
407
sample_geojson = {
419
419
}
420
420
],
421
421
}
422
- fig = px .choropleth_mapbox (
422
+ fig = px .choropleth_map (
423
423
geojson = sample_geojson ,
424
424
locations = ["the_polygon" ],
425
425
color = [10 ],
426
426
zoom = 6 ,
427
427
)
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 )
429
429
430
430
431
431
carshare = px .data .carshare ()
432
- fig = px .density_mapbox (
432
+ fig = px .density_map (
433
433
carshare ,
434
434
lat = "centroid_lat" ,
435
435
lon = "centroid_lon" ,
436
436
z = "peak_hour" ,
437
437
)
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 )
439
439
440
440
441
441
gapminder = px .data .gapminder ()
You can’t perform that action at this time.
0 commit comments