Skip to content

Commit 2295d0a

Browse files
author
Jeff Whitaker
committed
fix python 3 Key Error reported by Christoph Gohlke
1 parent 4d21177 commit 2295d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ def drawparallels(self,circles,color='k',linewidth=1.,zorder=None, \
20642064
t = ax.text(xx[n],self.llcrnry-yoffset,latlab,horizontalalignment='center',verticalalignment='top',**kwargs)
20652065
else:
20662066
t = ax.text(xx[n],self.urcrnry+yoffset,latlab,horizontalalignment='center',verticalalignment='bottom',**kwargs)
2067-
if t is not None: linecolls[lat][1].append(t)
2067+
if t is not None: linecolls[int(lat)][1].append(t)
20682068

20692069
# set axes limits to fit map region.
20702070
self.set_axes_limits(ax=ax)

0 commit comments

Comments
 (0)