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

Skip to content

Commit ada8147

Browse files
committed
fixed tests to comply with change to histnorm (-> probability density)
1 parent c2c1f18 commit ada8147

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_simple_distplot(self):
6363
self.assertEqual(dp['layout'], expected_dp_layout)
6464

6565
expected_dp_data_hist = {'autobinx': False,
66-
'histnorm': 'probability',
66+
'histnorm': 'probability density',
6767
'legendgroup': 'distplot',
6868
'marker': {'color': 'rgb(31, 119, 180)'},
6969
'name': 'distplot',
@@ -120,7 +120,7 @@ def test_distplot_more_args(self):
120120
self.assertEqual(dp['layout'], expected_dp_layout)
121121

122122
expected_dp_data_hist_1 = {'autobinx': False,
123-
'histnorm': 'probability',
123+
'histnorm': 'probability density',
124124
'legendgroup': '2012',
125125
'marker': {'color': 'rgb(31, 119, 180)'},
126126
'name': '2012',
@@ -136,7 +136,7 @@ def test_distplot_more_args(self):
136136
self.assertEqual(dp['data'][0], expected_dp_data_hist_1)
137137

138138
expected_dp_data_hist_2 = {'autobinx': False,
139-
'histnorm': 'probability',
139+
'histnorm': 'probability density',
140140
'legendgroup': '2013',
141141
'marker': {'color': 'rgb(255, 127, 14)'},
142142
'name': '2013',
@@ -165,7 +165,7 @@ def test_distplot_binsize_array(self):
165165
bin_size=[.2, .2])
166166

167167
expected_dp_data_hist_1 = {'autobinx': False,
168-
'histnorm': 'probability',
168+
'histnorm': 'probability density',
169169
'legendgroup': '2012',
170170
'marker': {'color': 'rgb(31, 119, 180)'},
171171
'name': '2012',
@@ -181,7 +181,7 @@ def test_distplot_binsize_array(self):
181181
self.assertEqual(dp['data'][0], expected_dp_data_hist_1)
182182

183183
expected_dp_data_hist_2 = {'autobinx': False,
184-
'histnorm': 'probability',
184+
'histnorm': 'probability density',
185185
'legendgroup': '2013',
186186
'marker': {'color': 'rgb(255, 127, 14)'},
187187
'name': '2013',

0 commit comments

Comments
 (0)