8000 Merge pull request #7453 from Kojoley/fix-test_log_margins · matplotlib/matplotlib@8515322 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8515322

Browse files
authored
Merge pull request #7453 from Kojoley/fix-test_log_margins
TST: Fixed `test_log_margins` test
2 parents 540fc5a + 7f2a0ce commit 8515322

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
@@ -4805,11 +4805,11 @@ def test_log_margins():
48054805
fig, ax = plt.subplots()
48064806
margin = 0.05
48074807
ax.set_xmargin(margin)
4808-
ax.semilogx([1, 10], [1, 10])
4808+
ax.semilogx([10, 100], [10, 100])
48094809
xlim0, xlim1 = ax.get_xlim()
48104810
transform = ax.xaxis.get_transform()
48114811
xlim0t, xlim1t = transform.transform([xlim0, xlim1])
4812-
x0t, x1t = transform.transform([1, 10])
4812+
x0t, x1t = transform.transform([10, 100])
48134813
delta = (x1t - x0t) * margin
48144814
assert_allclose([xlim0t + delta, xlim1t - delta], [x0t, x1t])
48154815

0 commit comments

Comments
 (0)
0