We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8c0d7 commit 2e14a18Copy full SHA for 2e14a18
plotly/tools.py
@@ -2339,7 +2339,7 @@ def create_distplot(hist_data, group_labels,
2339
-0.3, 1.2, 0.56, 0.3, 2.2]
2340
2341
# Group data together
2342
- hist_data = [hist1_x] + [hist2_x]
+ hist_data = [hist1_x, hist2_x]
2343
2344
group_labels = ['2012', '2013']
2345
@@ -2353,7 +2353,7 @@ def create_distplot(hist_data, group_labels,
2353
'k2', 'l2', 'm2', 'n2', 'o2']
2354
2355
# Group text together
2356
- rug_text_all = [rug_text_1] + [rug_text_2]
+ rug_text_all = [rug_text_1, rug_text_2]
2357
2358
# Create distplot
2359
fig = FF.create_distplot(
@@ -2377,7 +2377,7 @@ def create_distplot(hist_data, group_labels,
2377
x3 = np.random.randn(200)-1
2378
x4 = np.random.randn(210)+2
2379
2380
- hist_data = [x1] + [x2] + [x3] + [x4]
+ hist_data = [x1, x2, x3, x4]
2381
group_labels = ['2012', '2013', '2014', '2015']
2382
2383
0 commit comments