Skip to content

Commit 4d8fbc4

Browse files
committed
Updated figure factory init
1 parent ebb6209 commit 4d8fbc4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

plotly/figure_factory/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929

3030
if optional_imports.get_module("pandas") is not None:
3131
from plotly.figure_factory._county_choropleth import create_choropleth
32-
from plotly.figure_factory._hexbin_map import create_hexbin_map
32+
from plotly.figure_factory._hexbin_map import (
33+
create_hexbin_map,
34+
create_hexbin_mapbox,
35+
)
3336
else:
3437

3538
def create_choropleth(*args, **kwargs):
@@ -38,6 +41,9 @@ def create_choropleth(*args, **kwargs):
3841
def create_hexbin_map(*args, **kwargs):
3942
raise ImportError("Please install pandas to use `create_hexbin_map`")
4043

44+
def create_hexbin_mapbox(*args, **kwargs):
45+
raise ImportError("Please install pandas to use `create_hexbin_mapbox`")
46+
4147

4248
if optional_imports.get_module("skimage") is not None:
4349
from plotly.figure_factory._ternary_contour import create_ternary_contour
@@ -58,6 +64,7 @@ def create_ternary_contour(*args, **kwargs):
5864
"create_facet_grid",
5965
"create_gantt",
6066
"create_hexbin_map",
67+
"create_hexbin_mapbox",
6168
"create_ohlc",
6269
"create_quiver",
6370
"create_scatterplotmatrix",

0 commit comments

Comments
 (0)