Revision: 5201
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5201&view=rev
Author: jswhit
Date: 2008-05-20 08:14:39 -0700 (Tue, 20 May 2008)
Log Message:
-----------
change variable name
Modified Paths:
--------------
trunk/toolkits/basemap/lib/mpl_toolkits/basemap/basemap.py
Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/basemap.py 2008-05-20
15:08:21 UTC (rev 5200)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/basemap.py 2008-05-20
15:14:39 UTC (rev 5201)
@@ -1193,7 +1193,7 @@
ax = self.ax
# get axis background color.
axisbgc = ax.get_axis_bgcolor()
- npt = 0
+ npoly = 0
for x,y in self.coastpolygons:
xa = np.array(x,np.float32)
ya = np.array(y,np.float32)
@@ -1213,7 +1213,7 @@
hasp3 = np.sum(test1*test4)
if not hasp1 or not hasp2 or not hasp3 or not hasp4:
xy = zip(xa.tolist(),ya.tolist())
- if self.coastpolygontypes[npt] not in [2,4]:
+ if self.coastpolygontypes[npoly] not in [2,4]:
poly =
Polygon(xy,facecolor=color,edgecolor=color,linewidth=0)
else: # lakes filled with background color by default
if lake_color is None:
@@ -1223,7 +1223,7 @@
if zorder is not None:
poly.set_zorder(zorder)
ax.add_patch(poly)
- npt = npt + 1
+ npoly = npoly + 1
# set axes limits to fit map region.
self.set_axes_limits(ax=ax)
return poly
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins