MCPcopy Index your code
hub / github.com/plotly/plotly.py / zoom

Function zoom

plotly/figure_factory/_hexbin_map.py:44–45  ·  view source on GitHub ↗
(mapPx, worldPx, fraction)

Source from the content-addressed store, hash-verified

42 return max(min(radX2, np.pi), -np.pi) / 2
43
44 def zoom(mapPx, worldPx, fraction):
45 return 0.95 * np.log(mapPx / worldPx / fraction) / np.log(2)
46
47 latFraction = (latRad(lat_max) - latRad(lat_min)) / np.pi
48

Callers 1

_getBoundsZoomLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected