From: <js...@us...> - 2008-12-13 18:03:13
|
Revision: 6600 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6600&view=rev Author: jswhit Date: 2008-12-13 18:03:10 +0000 (Sat, 13 Dec 2008) Log Message: ----------- append LineCollection tuple to readshapefile return tuple. Modified Paths: -------------- trunk/toolkits/basemap/Changelog trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py Modified: trunk/toolkits/basemap/Changelog =================================================================== --- trunk/toolkits/basemap/Changelog 2008-12-13 17:45:00 UTC (rev 6599) +++ trunk/toolkits/basemap/Changelog 2008-12-13 18:03:10 UTC (rev 6600) @@ -1,4 +1,6 @@ version 0.99.3 (not yet released) + * if readshapefile is called with drawbounds=True, a + LineCollection object is appended to the returned tuple. * make sure drawmapscale method returns a list of objects that can be iterated over to remove them from the plot. * fillcontinents was returning just last Polygon instance. Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py =================================================================== --- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-12-13 17:45:00 UTC (rev 6599) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-12-13 18:03:10 UTC (rev 6600) @@ -1586,7 +1586,8 @@ the SHPT* constants defined in the shapelib module, see http://shapelib.maptools.org/shp_api.html) and min and max are 4-element lists with the minimum and maximum values of the - vertices. + vertices. If ``drawbounds=True`` a + matplotlib.patches.LineCollection object is appended to the tuple. """ # open shapefile, read vertices for each object, convert # to map projection coordinates (only works for 2D shape types). @@ -1664,6 +1665,7 @@ ax.add_collection(lines) # set axes limits to fit map region. self.set_axes_limits(ax=ax) + info = info + (lines,) # save segments/polygons and shape attribute dicts as class attributes. self.__dict__[name]=shpsegs self.__dict__[name+'_info']=shpinfo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |