Skip to content

Commit 099d9f7

Browse files
committed
fix test for proj 9.8
1 parent 66511a1 commit 099d9f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mplotutils/tests/test_mapticklabels.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@ def test_xticklabels_robinson(pass_ax):
5959
ax_ = ax if pass_ax else None
6060
mpu.xticklabels(lon, ax=ax_, size=8)
6161

62-
y_pos = -89.99
62+
# changed value with proj 9.8; https://github.com/mpytools/mplotutils/issues/202
63+
y_pos = -89.845635
6364

6465
# two elements are not added because they are beyond the map limits
6566
lon = lon[1:-1]
6667

6768
for t, x_pos in zip(ax.texts, lon, strict=True):
68-
np.testing.assert_allclose((x_pos, y_pos), t.xy, atol=0.01)
69+
np.testing.assert_allclose(t.xy, (x_pos, y_pos), atol=0.01)
6970

7071
assert ax.texts[0].get_text() == "120°W"
7172
assert ax.texts[-1].get_text() == "120°E"

0 commit comments

Comments
 (0)