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

Skip to content

Commit b5652bf

Browse files
committed
fix test
1 parent b2dfa40 commit b5652bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)