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

Skip to content

Commit 4570e59

Browse files
committed
changed default to probability density
1 parent 342fa54 commit 4570e59

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def test_distplot_more_args_prob(self):
215215
group_labels = ['2012', '2013']
216216

217217
dp = tls.FigureFactory.create_distplot(hist_data, group_labels,
218+
histnorm='probability',
218219
show_rug=False, bin_size=.2)
219220
dp['layout'].update(title='Dist Plot')
220221

@@ -270,6 +271,7 @@ def test_distplot_binsize_array_prob(self):
270271
group_labels = ['2012', '2013']
271272

272273
dp = tls.FigureFactory.create_distplot(hist_data, group_labels,
274+
histnorm='probability',
273275
show_rug=False,
274276
bin_size=[.2, .2])
275277

@@ -317,6 +319,7 @@ def test_distplot_binsize_array_prob_density(self):
317319
group_labels = ['2012', '2013']
318320

319321
dp = tls.FigureFactory.create_distplot(hist_data, group_labels,
322+
histnorm='probability',
320323
show_rug=False,
321324
bin_size=[.2, .2])
322325

plotly/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4019,7 +4019,7 @@ def create_candlestick(open, high, low, close,
40194019
@staticmethod
40204020
def create_distplot(hist_data, group_labels,
40214021
bin_size=1., curve_type='kde',
4022-
colors=[], rug_text=[], histnorm='probability',
4022+
colors=[], rug_text=[], histnorm='probability density',
40234023
show_hist=True, show_curve=True,
40244024
show_rug=True):
40254025
"""

0 commit comments

Comments
 (0)