()
| 435 | |
| 436 | |
| 437 | def test_set_fig_size(): |
| 438 | fig = plt.figure() |
| 439 | |
| 440 | # check figwidth |
| 441 | fig.set_figwidth(5) |
| 442 | assert fig.get_figwidth() == 5 |
| 443 | |
| 444 | # check figheight |
| 445 | fig.set_figheight(1) |
| 446 | assert fig.get_figheight() == 1 |
| 447 | |
| 448 | # check using set_size_inches |
| 449 | fig.set_size_inches(2, 4) |
| 450 | assert fig.get_figwidth() == 2 |
| 451 | assert fig.get_figheight() == 4 |
| 452 | |
| 453 | # check using tuple to first argument |
| 454 | fig.set_size_inches((1, 3)) |
| 455 | assert fig.get_figwidth() == 1 |
| 456 | assert fig.get_figheight() == 3 |
| 457 | |
| 458 | |
| 459 | def test_axes_remove(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…