Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mplotutils/tests/test_mapticklabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ def test_xticklabels_robinson(pass_ax):
ax_ = ax if pass_ax else None
mpu.xticklabels(lon, ax=ax_, size=8)

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

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

for t, x_pos in zip(ax.texts, lon, strict=True):
np.testing.assert_allclose((x_pos, y_pos), t.xy, atol=0.01)
np.testing.assert_allclose(t.xy, (x_pos, y_pos), atol=0.01)

assert ax.texts[0].get_text() == "120°W"
assert ax.texts[-1].get_text() == "120°E"
Expand Down
Loading