Skip to content

Commit edd012d

Browse files
committed
hexbin mapbox implemented in plotly.express
1 parent 3a711e9 commit edd012d

File tree

3 files changed

+389
-0
lines changed

3 files changed

+389
-0
lines changed

packages/python/plotly/plotly/express/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
choropleth_mapbox,
4848
density_mapbox,
4949
)
50+
from ._hexbin_mapbox import hexbin_mapbox
5051

5152

5253
from ._core import ( # noqa: F401
@@ -100,4 +101,5 @@
100101
"IdentityMap",
101102
"Constant",
102103
"Range",
104+
"hexbin_mapbox",
103105
]

packages/python/plotly/plotly/express/_doc.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,15 @@
514514
"Sets the number of rendered sectors from any given `level`. Set `maxdepth` to -1 to render all the"
515515
"levels in the hierarchy.",
516516
],
517+
agg_func=[
518+
"function",
519+
"Numpy array aggregator, it must take as input a 1D array",
520+
"and output a scalar value."
521+
],
522+
gridsize=[
523+
"int",
524+
"Number of hexagons (horizontally) to be created",
525+
]
517526
)
518527

519528

0 commit comments

Comments
 (0)