8000 Feature/hexbin mapbox by RenaudLN · Pull Request #2559 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

Feature/hexbin mapbox #2559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 14, 2020
Prev Previous commit
Next Next commit
hexbin_mapbox test
  • Loading branch information
RenaudLN committed Jun 11, 2020
commit 469014ee0d3a5318b1277dbedc7166fd5a9edce7
15 changes: 15 additions & 0 deletions test/percy/plotly-express.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,21 @@
)
fig.write_html(os.path.join(dir_name, "line_mapbox.html"))

import plotly.express as px
import numpy as np

carshare = px.data.carshare()
fig = px.hexbin_mapbox(
carshare,
lat="centroid_lat",
lon="centroid_lon",
color="peak_hour",
color_continuous_scale=px.colors.cyclical.IceFire,
gridsize=10,
agg_func=np.mean,
)
fig.write_html(os.path.join(dir_name, "hexbin_mapbox.html"))

import plotly.express as px

sample_geojson = {
Expand Down
0