From: <js...@us...> - 2009-06-23 13:15:21
|
Revision: 7232 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7232&view=rev Author: jswhit Date: 2009-06-23 12:47:49 +0000 (Tue, 23 Jun 2009) Log Message: ----------- fix bug in spines Modified Paths: -------------- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py =================================================================== --- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-06-23 12:39:21 UTC (rev 7231) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-06-23 12:47:49 UTC (rev 7232) @@ -1266,7 +1266,7 @@ ax.frame.set_linewidth(linewidth) except AttributeError: for spine in ax.spines.itervalues(): - ax.spines[spine].set_linewidth(linewidth) + spine.set_linewidth(linewidth) if self.projection not in ['geos','ortho']: if fill_color is not None: ax.axesPatch.set_facecolor(fill_color) @@ -1274,7 +1274,7 @@ ax.frame.set_edgecolor(color) except AttributeError: for spine in ax.spines.itervalues(): - ax.spines[spine].set_edgecolor(color) + spine.set_edgecolor(color) ax.set_frame_on(True) # FIXME? should zorder be set separately for edge and background? if zorder is not None: @@ -1283,14 +1283,14 @@ ax.frame.set_zorder(zorder) except AttributeError: for spine in ax.spines.itervalues(): - ax.spines[spine].set_zorder(zorder) + spine.set_zorder(zorder) else: # use axesPatch for fill_color, frame for border line props. try: ax.frame.set_edgecolor(color) except AttributeError: for spine in ax.spines.itervalues(): - ax.spines[spine].set_edgecolor(color) + spine.set_edgecolor(color) ax.set_frame_on(True) # FIXME? should zorder be set separately for edge and background? if zorder is not None: @@ -1299,7 +1299,7 @@ ax.frame.set_zorder(zorder) except AttributeError: for spine in ax.spines.itervalues(): - ax.spines[spine].set_zorder(zorder) + spine.set_zorder(zorder) # for geos or ortho projections, also # draw and fill map projection limb, clipped # to rectangular region. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |