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

Function test_shared_aspect_error

lib/matplotlib/tests/test_axes.py:6453–6457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6451
6452
6453def test_shared_aspect_error():
6454 fig, axes = plt.subplots(1, 2, sharex=True, sharey=True)
6455 axes[0].axis("equal")
6456 with pytest.raises(RuntimeError, match=r"set_aspect\(..., adjustable="):
6457 fig.draw_without_rendering()
6458
6459
6460@pytest.mark.parametrize('err, args, kwargs, match',

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…