(twin)
| 6503 | |
| 6504 | @pytest.mark.parametrize('twin', ('x', 'y')) |
| 6505 | def test_twin_with_aspect(twin): |
| 6506 | fig, ax = plt.subplots() |
| 6507 | # test twinx or twiny |
| 6508 | ax_twin = getattr(ax, f'twin{twin}')() |
| 6509 | ax.set_aspect(5) |
| 6510 | ax_twin.set_aspect(2) |
| 6511 | assert_array_equal(ax.bbox.extents, |
| 6512 | ax_twin.bbox.extents) |
| 6513 | |
| 6514 | |
| 6515 | def test_relim_visible_only(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…