Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e14a18

Browse files
committed
edit list combination in examples
1 parent 5e8c0d7 commit 2e14a18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ def create_distplot(hist_data, group_labels,
23392339
-0.3, 1.2, 0.56, 0.3, 2.2]
23402340
23412341
# Group data together
2342-
hist_data = [hist1_x] + [hist2_x]
2342+
hist_data = [hist1_x, hist2_x]
23432343
23442344
group_labels = ['2012', '2013']
23452345
@@ -2353,7 +2353,7 @@ def create_distplot(hist_data, group_labels,
23532353
'k2', 'l2', 'm2', 'n2', 'o2']
23542354
23552355
# Group text together
2356-
rug_text_all = [rug_text_1] + [rug_text_2]
2356+
rug_text_all = [rug_text_1, rug_text_2]
23572357
23582358
# Create distplot
23592359
fig = FF.create_distplot(
@@ -2377,7 +2377,7 @@ def create_distplot(hist_data, group_labels,
23772377
x3 = np.random.randn(200)-1
23782378
x4 = np.random.randn(210)+2
23792379
2380-
hist_data = [x1] + [x2] + [x3] + [x4]
2380+
hist_data = [x1, x2, x3, x4]
23812381
group_labels = ['2012', '2013', '2014', '2015']
23822382
23832383
fig = FF.create_distplot(

0 commit comments

Comments
 (0)