MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_twin_with_aspect

Function test_twin_with_aspect

lib/matplotlib/tests/test_axes.py:6505–6512  ·  view source on GitHub ↗
(twin)

Source from the content-addressed store, hash-verified

6503
6504@pytest.mark.parametrize('twin', ('x', 'y'))
6505def 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
6515def test_relim_visible_only():

Callers

nothing calls this directly

Calls 2

subplotsMethod · 0.45
set_aspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…