()
| 6407 | |
| 6408 | |
| 6409 | def test_shared_with_aspect_1(): |
| 6410 | # allow sharing one axis |
| 6411 | for adjustable in ['box', 'datalim']: |
| 6412 | fig, axs = plt.subplots(nrows=2, sharex=True) |
| 6413 | axs[0].set_aspect(2, adjustable=adjustable, share=True) |
| 6414 | assert axs[1].get_aspect() == 2 |
| 6415 | assert axs[1].get_adjustable() == adjustable |
| 6416 | |
| 6417 | fig, axs = plt.subplots(nrows=2, sharex=True) |
| 6418 | axs[0].set_aspect(2, adjustable=adjustable) |
| 6419 | assert axs[1].get_aspect() == 'auto' |
| 6420 | |
| 6421 | |
| 6422 | def test_shared_with_aspect_2(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…