Skip to content

Commit cbe212a

Browse files
committed
new version of addcyclic
2 parents 8b46fa8 + 8862c27 commit cbe212a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version 1.0.8 (not yet released)
22
--------------------------------
3+
* don't assume grid is regular with adding cyclic point in addcyclic.
4+
New kwarg 'cyclic_dimension' added, with a default of 360. Partially
5+
addresses issue 139.
36
* fix for coastline drawing glitch (issue 123).
47
* update shapefile.py to version 1.2.0 from pyshp.googlecode.com. Add back
58
in modification clobbered in upgrade to version 1.1.7 (issue 30).

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,8 +2924,8 @@ def drawgreatcircle(self,lon1,lat1,lon2,lat2,del_s=100.,**kwargs):
29242924

29252925
# create new vertices with a nan inbetween and set those as the path's vertices
29262926
verts = np.concatenate(
2927-
[p.vertices[:cut_point, :],
2928-
[[np.nan, np.nan]],
2927+
[p.vertices[:cut_point, :],
2928+
[[np.nan, np.nan]],
29292929
p.vertices[cut_point+1:, :]]
29302930
)
29312931
p.codes = None
@@ -4087,7 +4087,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
40874087
from PIL import Image
40884088
except ImportError:
40894089
try:
4090-
import Image
4090+
import Image
40914091
except ImportError:
40924092
raise ImportError('warpimage method requires PIL (http://www.pythonware.com/products/pil)')
40934093

0 commit comments

Comments
 (0)