@@ -1141,29 +1141,93 @@ def test_scatter_plot_matrix(self):
1141
1141
columns = ['Numbers' , 'Fruit' ])
1142
1142
1143
1143
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 ,
1145
1145
title = 'Scatterplot Matrix'
1146
1146
)
1147
1147
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
+
1148
1218
exp_scatter_plot_matrix = {
1149
- 'data' : [{'marker' : {'size' : 13 },
1150
- 'mode' : 'markers' ,
1219
+ 'data' : [{'name' : None ,
1151
1220
'showlegend' : False ,
1152
- 'type' : 'scatter' ,
1153
- 'x' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
1221
+ 'type' : 'box' ,
1154
1222
'xaxis' : 'x1' ,
1155
1223
'y' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
1156
1224
'yaxis' : 'y1' },
1157
1225
{'marker' : {'size' : 13 },
1158
1226
'mode' : 'markers' ,
1159
1227
'showlegend' : False ,
1160
1228
'type' : 'scatter' ,
1161
- 'x' : ['Apple' ,
1162
- 'Pear' ,
1163
- 'Apple' ,
1164
- 'Pear' ,
1165
- 'Apple' ,
1166
- 'Apple' ],
1229
+ 'x' : ['Apple' , 'Pear' , 'Apple' ,
1230
+ 'Pear' , 'Apple' , 'Apple' ],
1167
1231
'xaxis' : 'x2' ,
1168
1232
'y' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
1169
1233
'yaxis' : 'y2' },
@@ -1173,44 +1237,40 @@ def test_scatter_plot_matrix(self):
1173
1237
'type' : 'scatter' ,
1174
1238
'x' : [2 , 6 , - 15 , 5 , - 2 , 0 ],
1175
1239
'xaxis' : 'x3' ,
1176
- 'y' : ['Apple' ,
1177
- 'Pear' ,
1178
- 'Apple' ,
1179
- 'Pear' ,
1180
- 'Apple' ,
1181
- 'Apple' ],
1240
+ 'y' : ['Apple' , 'Pear' , 'Apple' ,
1241
+ 'Pear' , 'Apple' , 'Apple' ],
1182
1242
'yaxis' : 'y3' },
1183
- {'marker' : {'size' : 13 },
1184
- 'mode' : 'markers' ,
1243
+ {'name' : None ,
1185
1244
'showlegend' : False ,
1186
- 'type' : 'scatter' ,
1187
- 'x' : ['Apple' ,
1188
- 'Pear' ,
1189
- 'Apple' ,
1190
- 'Pear' ,
1191
- 'Apple' ,
1192
- 'Apple' ],
1245
+ 'type' : 'box' ,
1193
1246
'xaxis' : 'x4' ,
1194
- 'y' : ['Apple' , 'Pear' , 'Apple' , 'Pear' , 'Apple' , 'Apple' ],
1247
+ 'y' : ['Apple' , 'Pear' , 'Apple' ,
1248
+ 'Pear' , 'Apple' , 'Apple' ],
1195
1249
'yaxis' : 'y4' }],
1196
1250
'layout' : {'height' : 1000 ,
1197
1251
'showlegend' : True ,
1198
1252
'title' : 'Scatterplot Matrix' ,
1199
1253
'width' : 1000 ,
1200
1254
'xaxis1' : {'anchor' : 'y1' ,
1201
- 'domain' : [0.0 , 0.45 ]},
1255
+ 'domain' : [0.0 , 0.45 ],
1256
+ 'showticklabels' : False },
1202
1257
'xaxis2' : {'anchor' : 'y2' ,
1203
1258
'domain' : [0.55 , 1.0 ]},
1204
1259
'xaxis3' : {'anchor' : 'y3' ,
1205
- 'domain' : [0.0 , 0.45 ], 'title' : 'Numbers' },
1260
+ 'domain' : [0.0 , 0.45 ],
1261
+ 'title' : 'Numbers' },
1206
1262
'xaxis4' : {'anchor' : 'y4' ,
1207
- 'domain' : [0.55 , 1.0 ], 'title' : 'Fruit' },
1263
+ 'domain' : [0.55 , 1.0 ],
1264
+ 'showticklabels' : False ,
1265
+ 'title' : 'Fruit' },
1208
1266
'yaxis1' : {'anchor' : 'x1' ,
1209
- 'domain' : [0.575 , 1.0 ], 'title' : 'Numbers' },
1267
+ 'domain' : [0.575 , 1.0 ],
1268
+ 'title' : 'Numbers' },
1210
1269
'yaxis2' : {'anchor' : 'x2' ,
1211
1270
'domain' : [0.575 , 1.0 ]},
1212
1271
'yaxis3' : {'anchor' : 'x3' ,
1213
- 'domain' : [0.0 , 0.425 ], 'title' : 'Fruit' },
1272
+ 'domain' : [0.0 , 0.425 ],
1273
+ 'title' : 'Fruit' },
1214
1274
'yaxis4' : {'anchor' : 'x4' ,
1215
1275
'domain' : [0.0 , 0.425 ]}}
1216
1276
}
0 commit comments