()
| 561 | |
| 562 | |
| 563 | def test_suplabels(): |
| 564 | fig, ax = plt.subplots(layout="constrained") |
| 565 | fig.draw_without_rendering() |
| 566 | pos0 = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 567 | fig.supxlabel('Boo') |
| 568 | fig.supylabel('Booy') |
| 569 | fig.draw_without_rendering() |
| 570 | pos = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 571 | assert pos.y0 > pos0.y0 + 10.0 |
| 572 | assert pos.x0 > pos0.x0 + 10.0 |
| 573 | |
| 574 | fig, ax = plt.subplots(layout="constrained") |
| 575 | fig.draw_without_rendering() |
| 576 | pos0 = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 577 | # check that specifying x (y) doesn't ruin the layout |
| 578 | fig.supxlabel('Boo', x=0.5) |
| 579 | fig.supylabel('Boo', y=0.5) |
| 580 | fig.draw_without_rendering() |
| 581 | pos = ax.get_tightbbox(fig.canvas.get_renderer()) |
| 582 | assert pos.y0 > pos0.y0 + 10.0 |
| 583 | assert pos.x0 > pos0.x0 + 10.0 |
| 584 | |
| 585 | |
| 586 | def test_gridspec_addressing(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…