8000 fix test · matplotlib/matplotlib@b5652bf · GitHub
[go: up one dir, main page]

Skip to content

Commit b5652bf

Browse files
committed
fix test
1 parent b2dfa40 commit b5652bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_scale.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def test_extra_kwargs_raise():
7777
def test_logscale_invert_transform():
7878
fig, ax = plt.subplots()
7979
ax.set_yscale('log')
80-
tform = ax.transData.inverted()
80+
# get transformation from data to axes
81+
tform = (ax.transAxes + ax.transData.inverted()).inverted()
8182

8283
def test_logscale_transform_repr():
8384
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)
0