Skip to content

Commit b3bf96d

Browse files
committed
Switching 'histogram' to 'scatter'
1 parent 7a2dffa commit b3bf96d

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,11 +796,11 @@ 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='histogram',
799+
df, index='Fruit', endpts=[-10, -1], diag='scatter',
800800
height=1000, width=1000, size=13, title='Scatterplot Matrix',
801801
use_theme=True, palette='YlOrRd', marker=dict(symbol=136)
802802
)
803-
803+
"""
804804
exp_scatter_plot_matrix = {
805805
'data': [{'marker': {'color': 'rgb(128.0, 0.0, 38.0)'},
806806
'showlegend': False,
@@ -826,6 +826,36 @@ def test_scatter_plot_matrix_kwargs(self):
826826
'domain': [0.0, 1.0],
827827
'title': 'Numbers'}}
828828
}
829+
"""
830+
831+
exp_scatter_plot_matrix = {
832+
'data': [{'marker': {'color': 'rgb(128.0, 0.0, 38.0)',
833+
'size': 13,
834+
'symbol': 136},
835+
'mode': 'markers',
836+
'name': 'Apple',
837+
'showlegend': False,
838+
'type': 'scatter',
839+
'x': [2, -15, -2, 0],
840+
'xaxis': 'x1',
841+
'y': [2, -15, -2, 0],
842+
'yaxis': 'y1'},
843+
{'marker': {'color': 'rgb(255.0, 255.0, 204.0)', 'size': 13, 'symbol': 136},
844+
'mode': 'markers',
845+
'name': 'Pear',
846+
'showlegend': False,
847+
'type': 'scatter',
848+
'x': [6, 5],
849+
'xaxis': 'x1',
850+
'y': [6, 5],
851+
'yaxis': 'y1'}],
852+
'layout': {'height': 1000,
853+
'showlegend': True,
854+
'title': 'Scatterplot Matrix',
855+
'width': 1000,
856+
'xaxis1': {'anchor': 'y1', 'domain': [0.0, 1.0], 'title': 'Numbers'},
857+
'yaxis1': {'anchor': 'x1', 'domain': [0.0, 1.0], 'title': 'Numbers'}}
858+
}
829859

830860
self.assert_dict_equal(test_scatter_plot_matrix['data'][0],
831861
exp_scatter_plot_matrix['data'][0])

0 commit comments

Comments
 (0)