Skip to content

Commit 7eca185

Browse files
committed
backwards compatibility
1 parent 54e91f4 commit 7eca185

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plotly/tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2450,9 +2450,12 @@ def create_distplot(hist_data, group_labels,
24502450
"""
24512451
# TODO: protected until #282
24522452
from plotly.graph_objs import graph_objs
2453-
FigureFactory._validate_distplot(hist_data, curve_type) #<--- working on this right now
2453+
FigureFactory._validate_distplot(hist_data, curve_type)
24542454
FigureFactory._validate_equal_length(hist_data, group_labels)
24552455

2456+
if isinstance(bin_size, float):
2457+
bin_size = [bin_size]
2458+
24562459
hist = _Distplot(
24572460
hist_data, group_labels, bin_size,
24582461
curve_type, colors, rug_text,

0 commit comments

Comments
 (0)