|
From: Jeff W. <js...@fa...> - 2006-04-21 12:48:36
|
Lionel Roubeyrie wrote:
> Hi,
> Thanks Jeff for the link, after some compilation problems, shpproj works fine,
> but now I have another problem when trying to insert a shapefile:
> ################################
> lionel[Implantations]
> 211>m.readshapefile("/home/lionel/SIG/France/Vecteurs/test/test","test")
> ---------------------------------------------------------------------------
> exceptions.TypeError Traceback (most recent
> call last)
>
> /home/lionel/Etudes_Techniques/ETD-2005-13_OZONE/Implantations/<console>
>
> /usr/lib/python2.4/site-packages/matplotlib/toolkits/basemap/basemap.py in
> readshapefile(self, shapefile, name, drawbounds, linewidth, color,
> antialiased, ax)
> 1338 ax.set_yticks([])
> 1339 # set axes limits to fit map region.
> -> 1340 self.set_axes_limits(ax=ax)
> 1341 # save segments/polygons and shape attribute dicts as class
> attributes.
> 1342 self.__dict__[name]=shpsegs
>
> /usr/lib/python2.4/site-packages/matplotlib/toolkits/basemap/basemap.py in
> set_axes_limits(self, ax)
> 1920 # make sure aspect ratio of map preserved.
> 1921 # plot is re-centered in bounding rectangle.
> -> 1922 ax.set_aspect('equal',adjusts='position')
> 1923 ax.apply_aspect()
> 1924
>
> TypeError: set_aspect() got an unexpected keyword argument 'adjusts'
>
> ###################################
> The same problem happens when trying examples :-(
>
>
Lionel: Are you running matplotlib from svn (not 0.87.2)? If so,
you'll need the svn version of basemap as well. The axes aspect ratio
handling has changed, and svn basemap has been updated to handle the new
syntax.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
|