From: <js...@us...> - 2008-07-28 16:23:30
|
Revision: 5910 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5910&view=rev Author: jswhit Date: 2008-07-28 16:23:26 +0000 (Mon, 28 Jul 2008) Log Message: ----------- make sure axes.frame (not axes.AxesPatch) used to define properties of map boundary line. 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 2008-07-28 15:40:22 UTC (rev 5909) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-07-28 16:23:26 UTC (rev 5910) @@ -1211,23 +1211,28 @@ if zorder is not None: limb.set_zorder(zorder) else: # all other projections are rectangular. - ax.axesPatch.set_linewidth(linewidth) + # use axesPatch for fill_color, frame for border line props. + ax.frame.set_linewidth(linewidth) if self.projection not in ['geos','ortho']: if fill_color is None: ax.axesPatch.set_facecolor(ax.get_axis_bgcolor()) else: ax.axesPatch.set_facecolor(fill_color) ax.axesPatch.set_zorder(0) - ax.axesPatch.set_edgecolor(color) + ax.frame.set_zorder(0) + ax.frame.set_edgecolor(color) ax.set_frame_on(True) if zorder is not None: ax.axesPatch.set_zorder(zorder) + ax.frame.set_zorder(zorder) else: - ax.axesPatch.set_facecolor(ax.get_axis_bgcolor()) + # use axesPatch for fill_color, frame for border line props. ax.axesPatch.set_edgecolor(color) + ax.frame.set_edgecolor(color) ax.set_frame_on(True) if zorder is not None: ax.axesPatch.set_zorder(zorder) + ax.frame.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. |