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
Remove unused
  • Loading branch information
RenaudLN committed Jun 11, 2020
commit e323b1030caf51661a9edce598c50c7701ff5129
10 changes: 0 additions & 10 deletions packages/python/plotly/plotly/express/_hexbin_mapbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ def _project_wgs84_to_latlon(x, y):
return lat, lon


def _human_format(number):
"""
Transforms high numbers to human readable numer string
"""
units = ["", "K", "M", "G", "T", "P"]
k = 1000.0
magnitude = int(np.floor(np.log(number, k)))
return "%.2f%s" % (number / k ** magnitude, units[magnitude])


def _getBoundsZoomLevel(lon_min, lon_max, lat_min, lat_max, mapDim):
"""
Get the mapbox zoom level given bounds and a figure dimension
Expand Down
0