Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d37e45

Browse filesBrowse files
committed
TST: add test for error
1 parent 53f142e commit 5d37e45
Copy full SHA for 5d37e45

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,6 +4936,13 @@ def test_shared_with_aspect_3():
49364936
assert round(expected, 4) == round(ax.get_aspect(), 4)
49374937

49384938

4939+
def test_shared_aspect_error():
4940+
fig, axes = plt.subplots(1, 2, sharex=True, sharey=True)
4941+
axes[0].axis("equal")
4942+
with pytest.raises(RuntimeError, match=r"set_aspect\(..., adjustable="):
4943+
fig.draw_without_rendering()
4944+
4945+
49394946
@pytest.mark.parametrize('twin', ('x', 'y'))
49404947
def test_twin_with_aspect(twin):
49414948
fig, ax = plt.subplots()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.