File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 25
25
import matplotlib .markers as mmarkers
26
26
import matplotlib .patches as mpatches
27
27
import matplotlib .colors as mcolors
28
- from numpy .testing import assert_allclose , assert_array_equal
28
+ from numpy .testing import (
29
+ assert_allclose , assert_array_equal , assert_array_almost_equal )
29
30
from matplotlib .cbook import (
30
31
IgnoredKeywordWarning , MatplotlibDeprecationWarning )
31
32
from matplotlib .cbook ._backports import broadcast_to
@@ -4823,6 +4824,12 @@ def test_square_plot():
4823
4824
xlim , ylim = ax .get_xlim (), ax .get_ylim ()
4824
4825
assert np .diff (xlim ) == np .diff (ylim )
4825
4826
assert ax .get_aspect () == 'equal'
4827
+ assert_array_almost_equal (
4828
+ ax .get_position (original = True ).extents ,
4829
+ np .array ((0.125 , 0.1 , 0.9 , 0.9 )))
4830
+ assert_array_almost_equal (
4831
+ ax .get_position (original = False ).extents ,
4832
+ np .array ((0.2125 , 0.1 , 0.8125 , 0.9 )))
4826
4833
4827
4834
4828
4835
def test_no_None ():
You can’t perform that action at this time.
0 commit comments