@@ -1141,29 +1141,93 @@ def test_scatter_plot_matrix(self):
11411141 columns = ['Numbers' , 'Fruit' ])
11421142
11431143 test_scatter_plot_matrix = tls .FigureFactory .create_scatterplotmatrix (
1144- df = df , diag = 'scatter ' , height = 1000 , width = 1000 , size = 13 ,
1144+ df = df , diag = 'box ' , height = 1000 , width = 1000 , size = 13 ,
11451145 title = 'Scatterplot Matrix'
11461146 )
11471147
1148+ # exp_scatter_plot_matrix = {
1149+ # 'data': [{'marker': {'size': 13},
1150+ # 'mode': 'markers',
1151+ # 'showlegend': False,
1152+ # 'type': 'scatter',
1153+ # 'x': [2, 6, -15, 5, -2, 0],
1154+ # 'xaxis': 'x1',
1155+ # 'y': [2, 6, -15, 5, -2, 0],
1156+ # 'yaxis': 'y1'},
1157+ # {'marker': {'size': 13},
1158+ # 'mode': 'markers',
1159+ # 'showlegend': False,
1160+ # 'type': 'scatter',
1161+ # 'x': ['Apple',
1162+ # 'Pear',
1163+ # 'Apple',
1164+ # 'Pear',
1165+ # 'Apple',
1166+ # 'Apple'],
1167+ # 'xaxis': 'x2',
1168+ # 'y': [2, 6, -15, 5, -2, 0],
1169+ # 'yaxis': 'y2'},
1170+ # {'marker': {'size': 13},
1171+ # 'mode': 'markers',
1172+ # 'showlegend': False,
1173+ # 'type': 'scatter',
1174+ # 'x': [2, 6, -15, 5, -2, 0],
1175+ # 'xaxis': 'x3',
1176+ # 'y': ['Apple',
1177+ # 'Pear',
1178+ # 'Apple',
1179+ # 'Pear',
1180+ # 'Apple',
1181+ # 'Apple'],
1182+ # 'yaxis': 'y3'},
1183+ # {'marker': {'size': 13},
1184+ # 'mode': 'markers',
1185+ # 'showlegend': False,
1186+ # 'type': 'scatter',
1187+ # 'x': ['Apple',
1188+ # 'Pear',
1189+ # 'Apple',
1190+ # 'Pear',
1191+ # 'Apple',
1192+ # 'Apple'],
1193+ # 'xaxis': 'x4',
1194+ # 'y': ['Apple', 'Pear', 'Apple', 'Pear', 'Apple', 'Apple'],
1195+ # 'yaxis': 'y4'}],
1196+ # 'layout': {'height': 1000,
1197+ # 'showlegend': True,
1198+ # 'title': 'Scatterplot Matrix',
1199+ # 'width': 1000,
1200+ # 'xaxis1': {'anchor': 'y1',
1201+ # 'domain': [0.0, 0.45]},
1202+ # 'xaxis2': {'anchor': 'y2',
1203+ # 'domain': [0.55, 1.0]},
1204+ # 'xaxis3': {'anchor': 'y3',
1205+ # 'domain': [0.0, 0.45], 'title': 'Numbers'},
1206+ # 'xaxis4': {'anchor': 'y4',
1207+ # 'domain': [0.55, 1.0], 'title': 'Fruit'},
1208+ # 'yaxis1': {'anchor': 'x1',
1209+ # 'domain': [0.575, 1.0], 'title': 'Numbers'},
1210+ # 'yaxis2': {'anchor': 'x2',
1211+ # 'domain': [0.575, 1.0]},
1212+ # 'yaxis3': {'anchor': 'x3',
1213+ # 'domain': [0.0, 0.425], 'title': 'Fruit'},
1214+ # 'yaxis4': {'anchor': 'x4',
1215+ # 'domain': [0.0, 0.425]}}
1216+ # }
1217+
11481218 exp_scatter_plot_matrix = {
1149- 'data' : [{'marker' : {'size' : 13 },
1150- 'mode' : 'markers' ,
1219+ 'data' : [{'name' : None ,
11511220 'showlegend' : False ,
1152- 'type' : 'scatter' ,
1153- 'x' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
1221+ 'type' : 'box' ,
11541222 'xaxis' : 'x1' ,
11551223 'y' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
11561224 'yaxis' : 'y1' },
11571225 {'marker' : {'size' : 13 },
11581226 'mode' : 'markers' ,
11591227 'showlegend' : False ,
11601228 'type' : 'scatter' ,
1161- 'x' : ['Apple' ,
1162- 'Pear' ,
1163- 'Apple' ,
1164- 'Pear' ,
1165- 'Apple' ,
1166- 'Apple' ],
1229+ 'x' : ['Apple' , 'Pear' , 'Apple' ,
1230+ 'Pear' , 'Apple' , 'Apple' ],
11671231 'xaxis' : 'x2' ,
11681232 'y' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
11691233 'yaxis' : 'y2' },
@@ -1173,44 +1237,40 @@ def test_scatter_plot_matrix(self):
11731237 'type' : 'scatter' ,
11741238 'x' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
11751239 'xaxis' : 'x3' ,
1176- 'y' : ['Apple' ,
1177- 'Pear' ,
1178- 'Apple' ,
1179- 'Pear' ,
1180- 'Apple' ,
1181- 'Apple' ],
1240+ 'y' : ['Apple' , 'Pear' , 'Apple' ,
1241+ 'Pear' , 'Apple' , 'Apple' ],
11821242 'yaxis' : 'y3' },
1183- {'marker' : {'size' : 13 },
1184- 'mode' : 'markers' ,
1243+ {'name' : None ,
11851244 'showlegend' : False ,
1186- 'type' : 'scatter' ,
1187- 'x' : ['Apple' ,
1188- 'Pear' ,
1189- 'Apple' ,
1190- 'Pear' ,
1191- 'Apple' ,
1192- 'Apple' ],
1245+ 'type' : 'box' ,
11931246 'xaxis' : 'x4' ,
1194- 'y' : ['Apple' , 'Pear' , 'Apple' , 'Pear' , 'Apple' , 'Apple' ],
1247+ 'y' : ['Apple' , 'Pear' , 'Apple' ,
1248+ 'Pear' , 'Apple' , 'Apple' ],
11951249 'yaxis' : 'y4' }],
11961250 'layout' : {'height' : 1000 ,
11971251 'showlegend' : True ,
11981252 'title' : 'Scatterplot Matrix' ,
11991253 'width' : 1000 ,
12001254 'xaxis1' : {'anchor' : 'y1' ,
1201- 'domain' : [0.0 , 0.45 ]},
1255+ 'domain' : [0.0 , 0.45 ],
1256+ 'showticklabels' : False },
12021257 'xaxis2' : {'anchor' : 'y2' ,
12031258 'domain' : [0.55 , 1.0 ]},
12041259 'xaxis3' : {'anchor' : 'y3' ,
1205- 'domain' : [0.0 , 0.45 ], 'title' : 'Numbers' },
1260+ 'domain' : [0.0 , 0.45 ],
1261+ 'title' : 'Numbers' },
12061262 'xaxis4' : {'anchor' : 'y4' ,
1207- 'domain' : [0.55 , 1.0 ], 'title' : 'Fruit' },
1263+ 'domain' : [0.55 , 1.0 ],
1264+ 'showticklabels' : False ,
1265+ 'title' : 'Fruit' },
12081266 'yaxis1' : {'anchor' : 'x1' ,
1209- 'domain' : [0.575 , 1.0 ], 'title' : 'Numbers' },
1267+ 'domain' : [0.575 , 1.0 ],
1268+ 'title' : 'Numbers' },
12101269 'yaxis2' : {'anchor' : 'x2' ,
12111270 'domain' : [0.575 , 1.0 ]},
12121271 'yaxis3' : {'anchor' : 'x3' ,
1213- 'domain' : [0.0 , 0.425 ], 'title' : 'Fruit' },
1272+ 'domain' : [0.0 , 0.425 ],
1273+ 'title' : 'Fruit' },
12141274 'yaxis4' : {'anchor' : 'x4' ,
12151275 'domain' : [0.0 , 0.425 ]}}
12161276 }
0 commit comments