From 7f2a0ce18bf3754c84858abf33cf968f9d17cc60 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sun, 13 Nov 2016 21:17:47 +0300 Subject: [PATCH] TST: Fixed `test_log_margins` test --- lib/matplotlib/tests/test_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 7290edfde948..1d8893ded18e 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -4805,11 +4805,11 @@ def test_log_margins(): fig, ax = plt.subplots() margin = 0.05 ax.set_xmargin(margin) - ax.semilogx([1, 10], [1, 10]) + ax.semilogx([10, 100], [10, 100]) xlim0, xlim1 = ax.get_xlim() transform = ax.xaxis.get_transform() xlim0t, xlim1t = transform.transform([xlim0, xlim1]) - x0t, x1t = transform.transform([1, 10]) + x0t, x1t = transform.transform([10, 100]) delta = (x1t - x0t) * margin assert_allclose([xlim0t + delta, xlim1t - delta], [x0t, x1t])