@@ -53,9 +53,8 @@ def zoom(mapPx, worldPx, fraction):
5353
5454 return min (latZoom , lngZoom , ZOOM_MAX )
5555
56- def _compute_hexbin (
57- x , y , x_range , y_range , color , nx , agg_func , min_count
58- ):
56+
57+ def _compute_hexbin (x , y , x_range , y_range , color , nx , agg_func , min_count ):
5958 """
6059 Computes the aggregation at hexagonal bin level.
6160 Also defines the coordinates of the hexagons for plotting.
@@ -214,6 +213,7 @@ def _compute_hexbin(
214213
215214 return hxs , hys , centers , agreggated_value
216215
216+
217217def _compute_wgs84_hexbin (
218218 lat = None ,
219219 lon = None ,
@@ -273,7 +273,7 @@ def _compute_wgs84_hexbin(
273273
274274 hxs , hys , centers , agreggated_value = _compute_hexbin (
275275 x , y , x_range , y_range , color , nx , agg_func , min_count
276- )
276+ )
277277
278278 # Convert back to lat-lon
279279 hexagons_lats , hexagons_lons = _project_wgs84_to_latlon (hxs , hys )
@@ -426,6 +426,7 @@ def create_hexbin_mapbox(
426426 height = height ,
427427 )
428428
429+
429430create_hexbin_mapbox .__doc__ = make_docstring (
430431 create_hexbin_mapbox ,
431432 override_dict = dict (
@@ -435,5 +436,5 @@ def create_hexbin_mapbox(
435436 "Numpy array aggregator, it must take as input a 1D array" ,
436437 "and output a scalar value." ,
437438 ],
438- )
439+ ),
439440)
0 commit comments