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

Skip to content

Commit 7afe967

Browse files
committed
Put 'histogram' back in diag=
1 parent 398b8d5 commit 7afe967

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def test_scatter_plot_matrix_kwargs(self):
796796
columns=['Numbers', 'Fruit'])
797797

798798
test_scatter_plot_matrix = tls.FigureFactory.create_scatterplotmatrix(
799-
df, index='Fruit', endpts=[-10, -1], diag='box',
799+
df, index='Fruit', endpts=[-10, -1], diag='histogram',
800800
height=1000, width=1000, size=13, title='Scatterplot Matrix',
801801
use_theme=True, palette='YlOrRd', marker=dict(symbol=136)
802802
)
@@ -830,20 +830,19 @@ def test_scatter_plot_matrix_kwargs(self):
830830

831831
exp_scatter_plot_matrix = {
832832
'data': [{'marker': {'color': 'rgb(128.0, 0.0, 38.0)'},
833-
'name': None,
834833
'showlegend': False,
835-
'type': 'box',
834+
'type': 'histogram',
835+
'x': [2, -15, -2, 0],
836836
'xaxis': 'x1',
837-
'y': [2, -15, -2, 0],
838837
'yaxis': 'y1'},
839838
{'marker': {'color': 'rgb(255.0, 255.0, 204.0)'},
840-
'name': None,
841839
'showlegend': False,
842-
'type': 'box',
840+
'type': 'histogram',
841+
'x': [6, 5],
843842
'xaxis': 'x1',
844-
'y': [6, 5],
845843
'yaxis': 'y1'}],
846-
'layout': {'height': 1000,
844+
'layout': {'barmode': 'stack',
845+
'height': 1000,
847846
'showlegend': True,
848847
'title': 'Scatterplot Matrix',
849848
'width': 1000,

0 commit comments

Comments
 (0)