Skip to content

Commit

Permalink
Add negative sign where needed when not using direction_label
Browse files Browse the repository at this point in the history
  • Loading branch information
gcaria committed Sep 29, 2020
1 parent 29a7e8f commit 46af533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cartopy/tests/mpl/test_ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_LatitudeFormatter_direction_label():
formatter.axis = Mock(axes=Mock(GeoAxes, projection=p))
test_ticks = [-90, -60, -30, 0, 30, 60, 90]
result = [formatter(tick) for tick in test_ticks]
expected = ['90\u00B0', '60\u00B0', '30\u00B0', '0\u00B0',
expected = ['-90\u00B0', '-60\u00B0', '-30\u00B0', '0\u00B0',
'30\u00B0', '60\u00B0', '90\u00B0']
assert result == expected

Expand Down Expand Up @@ -112,7 +112,7 @@ def test_LongitudeFormatter_direction_label():
formatter.axis = Mock(axes=Mock(GeoAxes, projection=p))
test_ticks = [-180, -120, -60, 0, 60, 120, 180]
result = [formatter(tick) for tick in test_ticks]
expected = ['180\u00B0', '120\u00B0', '60\u00B0', '0\u00B0',
expected = ['-180\u00B0', '-120\u00B0', '-60\u00B0', '0\u00B0',
'60\u00B0', '120\u00B0', '180\u00B0']
assert result == expected

Expand Down

0 comments on commit 46af533

Please sign in to comment.