Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6f2222

Browse files
committed
Merge pull request #7453 from Kojoley/fix-test_log_margins
TST: Fixed `test_log_margins` test
1 parent dc9e7ec commit e6f2222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4757,11 +4757,11 @@ def test_log_margins():
47574757
fig, ax = plt.subplots()
47584758
margin = 0.05
47594759
ax.set_xmargin(margin)
4760-
ax.semilogx([1, 10], [1, 10])
4760+
ax.semilogx([10, 100], [10, 100])
47614761
xlim0, xlim1 = ax.get_xlim()
47624762
transform = ax.xaxis.get_transform()
47634763
xlim0t, xlim1t = transform.transform([xlim0, xlim1])
4764-
x0t, x1t = transform.transform([1, 10])
4764+
x0t, x1t = transform.transform([10, 100])
47654765
delta = (x1t - x0t) * margin
47664766
assert_allclose([xlim0t + delta, xlim1t - delta], [x0t, x1t])
47674767

0 commit comments

Comments
 (0)