Skip to content

Commit 469014e

Browse files
committed
hexbin_mapbox test
1 parent 50854da commit 469014e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/percy/plotly-express.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,21 @@
443443
)
444444
fig.write_html(os.path.join(dir_name, "line_mapbox.html"))
445445

446+
import plotly.express as px
447+
import numpy as np
448+
449+
carshare = px.data.carshare()
450+
fig = px.hexbin_mapbox(
451+
carshare,
452+
lat="centroid_lat",
453+
lon="centroid_lon",
454+
color="peak_hour",
455+
color_continuous_scale=px.colors.cyclical.IceFire,
456+
gridsize=10,
457+
agg_func=np.mean,
458+
)
459+
fig.write_html(os.path.join(dir_name, "hexbin_mapbox.html"))
460+
446461
import plotly.express as px
447462

448463
sample_geojson = {

0 commit comments

Comments
 (0)