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 d7d55e4

Browse filesBrowse files
committed
TST: add to get_extents test
1 parent b1301f1 commit d7d55e4
Copy full SHA for d7d55e4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-0
lines changed

‎lib/matplotlib/tests/test_get_extents.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_get_extents.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ def test_normal_axes():
8484
targetbb = mtransforms.Bbox.from_bounds(*target)
8585
assert_array_almost_equal(bbtb.bounds, targetbb.bounds, decimal=2)
8686

87+
# test that get_position roundtrips to get_window_extent
88+
axbb = ax.get_position().transformed(fig.transFigure).bounds
89+
assert_array_almost_equal(axbb, ax.get_window_extent().bounds, decimal=2)
90+
91+
8792

8893
def test_nodecorator():
8994
with rc_context({'_internal.classic_mode': False}):

0 commit comments

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