Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1301f1 commit d7d55e4Copy full SHA for d7d55e4
lib/matplotlib/tests/test_get_extents.py
@@ -84,6 +84,11 @@ def test_normal_axes():
84
targetbb = mtransforms.Bbox.from_bounds(*target)
85
assert_array_almost_equal(bbtb.bounds, targetbb.bounds, decimal=2)
86
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
92
93
def test_nodecorator():
94
with rc_context({'_internal.classic_mode': False}):
0 commit comments