@@ -83,6 +83,22 @@ def test_insets_wrong_cell_col(self):
83
83
with self .assertRaises (Exception ):
84
84
tls .make_subplots (insets = ([{'cell' : (1 , 0 )}]))
85
85
86
+ def test_column_width_not_list (self ):
87
+ with self .assertRaises (Exception ):
88
+ tls .make_subplots (rows = 2 , cols = 2 , column_width = 'not gonna work' )
89
+
90
+ def test_column_width_not_list_of_correct_numbers (self ):
91
+ with self .assertRaises (Exception ):
92
+ tls .make_subplots (rows = 2 , cols = 2 , column_width = [0 ])
93
+
94
+ def test_row_width_not_list (self ):
95
+ with self .assertRaises (Exception ):
96
+ tls .make_subplots (rows = 2 , cols = 2 , row_width = 'not gonna work' )
97
+
98
+ def test_row_width_not_list_of_correct_numbers (self ):
99
+ with self .assertRaises (Exception ):
100
+ tls .make_subplots (rows = 2 , cols = 2 , row_width = [1 ])
101
+
86
102
def test_single_plot (self ):
87
103
expected = Figure (
88
104
data = Data (),
@@ -193,7 +209,7 @@ def test_a_lot(self):
193
209
anchor = 'y12'
194
210
),
195
211
xaxis13 = XAxis (
196
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
212
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
197
213
anchor = 'y13'
198
214
),
199
215
xaxis14 = XAxis (
@@ -225,7 +241,7 @@ def test_a_lot(self):
225
241
anchor = 'y2'
226
242
),
227
243
xaxis20 = XAxis (
228
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
244
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
229
245
anchor = 'y20'
230
246
),
231
247
xaxis21 = XAxis (
@@ -253,7 +269,7 @@ def test_a_lot(self):
253
269
anchor = 'y26'
254
270
),
255
271
xaxis27 = XAxis (
256
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
272
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
257
273
anchor = 'y27'
258
274
),
259
275
xaxis28 = XAxis (
@@ -273,7 +289,7 @@ def test_a_lot(self):
273
289
anchor = 'y5'
274
290
),
275
291
xaxis6 = XAxis (
276
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
292
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
277
293
anchor = 'y6'
278
294
),
279
295
xaxis7 = XAxis (
@@ -289,7 +305,7 @@ def test_a_lot(self):
289
305
anchor = 'y9'
290
306
),
291
307
yaxis1 = YAxis (
292
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
308
+ ___domain = [0.80625 , 1.0 ],
293
309
anchor = 'x1'
294
310
),
295
311
yaxis10 = YAxis (
@@ -333,7 +349,7 @@ def test_a_lot(self):
333
349
anchor = 'x19'
334
350
),
335
351
yaxis2 = YAxis (
336
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
352
+ ___domain = [0.80625 , 1.0 ],
337
353
anchor = 'x2'
338
354
),
339
355
yaxis20 = YAxis (
@@ -373,23 +389,23 @@ def test_a_lot(self):
373
389
anchor = 'x28'
374
390
),
375
391
yaxis3 = YAxis (
376
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
392
+ ___domain = [0.80625 , 1.0 ],
377
393
anchor = 'x3'
378
394
),
379
395
yaxis4 = YAxis (
380
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
396
+ ___domain = [0.80625 , 1.0 ],
381
397
anchor = 'x4'
382
398
),
383
399
yaxis5 = YAxis (
384
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
400
+ ___domain = [0.80625 , 1.0 ],
385
401
anchor = 'x5'
386
402
),
387
403
yaxis6 = YAxis (
388
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
404
+ ___domain = [0.80625 , 1.0 ],
389
405
anchor = 'x6'
390
406
),
391
407
yaxis7 = YAxis (
392
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
408
+ ___domain = [0.80625 , 1.0 ],
393
409
anchor = 'x7'
394
410
),
395
411
yaxis8 = YAxis (
@@ -426,7 +442,7 @@ def test_a_lot_bottom_left(self):
426
442
anchor = 'y12'
427
443
),
428
444
xaxis13 = XAxis (
429
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
445
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
430
446
anchor = 'y13'
431
447
),
432
448
xaxis14 = XAxis (
@@ -458,7 +474,7 @@ def test_a_lot_bottom_left(self):
458
474
anchor = 'y2'
459
475
),
460
476
xaxis20 = XAxis (
461
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
477
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
462
478
anchor = 'y20'
463
479
),
464
480
xaxis21 = XAxis (
@@ -486,7 +502,7 @@ def test_a_lot_bottom_left(self):
486
502
anchor = 'y26'
487
503
),
488
504
xaxis27 = XAxis (
489
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
505
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
490
506
anchor = 'y27'
491
507
),
492
508
xaxis28 = XAxis (
@@ -506,7 +522,7 @@ def test_a_lot_bottom_left(self):
506
522
anchor = 'y5'
507
523
),
508
524
xaxis6 = XAxis (
509
- ___domain = [0.7346938775510203 , 0.8530612244897958 ],
525
+ ___domain = [0.7346938775510204 , 0.8530612244897959 ],
510
526
anchor = 'y6'
511
527
),
512
528
xaxis7 = XAxis (
@@ -578,31 +594,31 @@ def test_a_lot_bottom_left(self):
578
594
anchor = 'x21'
579
595
),
580
596
yaxis22 = YAxis (
581
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
597
+ ___domain = [0.80625 , 1.0 ],
582
598
anchor = 'x22'
583
599
),
584
600
yaxis23 = YAxis (
585
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
601
+ ___domain = [0.80625 , 1.0 ],
586
602
anchor = 'x23'
587
603
),
588
604
yaxis24 = YAxis (
589
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
605
+ ___domain = [0.80625 , 1.0 ],
590
606
anchor = 'x24'
591
607
),
592
608
yaxis25 = YAxis (
593
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
609
+ ___domain = [0.80625 , 1.0 ],
594
610
anchor = 'x25'
595
611
),
596
612
yaxis26 = YAxis (
597
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
613
+ ___domain = [0.80625 , 1.0 ],
598
614
anchor = 'x26'
599
615
),
600
616
yaxis27 = YAxis (
601
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
617
+ ___domain = [0.80625 , 1.0 ],
602
618
anchor = 'x27'
603
619
),
604
620
yaxis28 = YAxis (
605
- ___domain = [0.8062499999999999 , 0.9999999999999999 ],
621
+ ___domain = [0.80625 , 1.0 ],
606
622
anchor = 'x28'
607
623
),
608
624
yaxis3 = YAxis (
@@ -1308,7 +1324,7 @@ def test_shared_yaxes(self):
1308
1324
xaxis4 = XAxis (
1309
1325
___domain = [0.55 , 1.0 ],
1310
1326
anchor = 'free' ,
1311
- position = 0.636
1327
+ position = 0.6359999999999999
1312
1328
),
1313
1329
xaxis5 = XAxis (
1314
1330
___domain = [0.0 , 0.45 ],
@@ -1337,7 +1353,7 @@ def test_shared_yaxes(self):
1337
1353
anchor = 'x1'
1338
1354
),
1339
1355
yaxis2 = YAxis (
1340
- ___domain = [0.636 , 0.788 ],
1356
+ ___domain = [0.6359999999999999 , 0.7879999999999999 ],
1341
1357
anchor = 'x3'
1342
1358
),
1343
1359
yaxis3 = YAxis (
0 commit comments