File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ from __future__ import unicode_literals
12from mpl_toolkits .basemap import Basemap
23import numpy as np
34import matplotlib .pyplot as plt
@@ -15,7 +16,7 @@ def lat2str(deg):
1516 deg += 1.0
1617 min -= 60.0
1718 dir = 'S'
18- return (u "%d\N{DEGREE SIGN} %g' %s" ) % (np .abs (deg ),np .abs (min ),dir )
19+ return ("%d\N{DEGREE SIGN} %g' %s" ) % (np .abs (deg ),np .abs (min ),dir )
1920
2021def lon2str (deg ):
2122 min = 60 * (deg - np .floor (deg ))
@@ -26,7 +27,7 @@ def lon2str(deg):
2627 deg += 1.0
2728 min -= 60.0
2829 dir = 'W'
29- return (u "%d\N{DEGREE SIGN} %g' %s" ) % (np .abs (deg ),np .abs (min ),dir )
30+ return ("%d\N{DEGREE SIGN} %g' %s" ) % (np .abs (deg ),np .abs (min ),dir )
3031
3132# (1) use matplotlib custom tick formatter
3233# instead of Basemap labelling methods.
You can’t perform that action at this time.
0 commit comments