Skip to content

Commit 77086f5

Browse files
committed
fixed the length of the array
1 parent 7eca185 commit 77086f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,8 +2453,8 @@ def create_distplot(hist_data, group_labels,
24532453
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]
2456+
if isinstance(bin_size, (float, int)):
2457+
bin_size = [bin_size]*len(hist_data)
24582458

24592459
hist = _Distplot(
24602460
hist_data, group_labels, bin_size,

0 commit comments

Comments
 (0)