Dear matplotlib developpers,

I use matplotlib for several years and I'm very satisfied with the it.
I started using the basemap package a few days ago, and I noticed something
that looks like a bug :

With the Mollweide projection (and others too), when specifying rsphere=1.0,
the coastlines is not drawn in the
left part of the plot. With rsphere=2.0 the hidden part is smaller, and with
rsphere=10.0 it is not visible.

I'm using matplotlib 1.0.0 and basemap 1.0
To reproduce the bug :

m = Basemap(projection='moll',lon_0=180,rsphere=1.0)
m.drawcoastlines(linewidth=0.5, color='grey')     # draw discrete coastlines
m.drawmapboundary()        # draw a line around the map region
show()

Finally the hammer projection is missing for me :

In [5]: m=Basemap(projection='hammer',lon_0=180)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/nat/pkg/python-matplotlib-basemap/<ipython console> in <module>()

/usr/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.pyc in
__init__(self, llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat, llcrnrx, llcrnry,
urcrnrx, urcrnry, width, height, projection, resolution, area_thresh,
rsphere, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, lon_2, no_rot,
suppress_ticks, satellite_height, boundinglat, fix_aspect, anchor, ax)
    698                 print 'warning: width and height keywords ignored
for %s projection' % _projnames[self.projection]
    699         else:
--> 700             raise ValueError(_unsupported_projection % projection)
    701
    702         # initialize proj4


ValueError: 'hammer' is an unsupported projection.
The supported projections are:
 aeqd             Azimuthal Equidistant
 poly             Polyconic
 gnom             Gnomonic
 moll             Mollweide
 tmerc            Transverse Mercator
 nplaea           North-Polar Lambert Azimuthal
 gall             Gall Stereographic Cylindrical
 mill             Miller Cylindrical
 merc             Mercator
 stere            Stereographic
 npstere          North-Polar Stereographic
 geos             Geostationary
 nsper            Near-Sided Perspective
 vandg            van der Grinten
 laea             Lambert Azimuthal Equal Area
 mbtfpq           McBryde-Thomas Flat-Polar Quartic
 sinu             Sinusoidal
 spstere          South-Polar Stereographic
 lcc              Lambert Conformal
 npaeqd           North-Polar Azimuthal Equidistant
 eqdc             Equidistant Conic
 cyl              Cylindrical Equidistant
 omerc            Oblique Mercator
 aea              Albers Equal Area
 spaeqd           South-Polar Azimuthal Equidistant
 ortho            Orthographic
 cass             Cassini-Soldner
 splaea           South-Polar Lambert Azimuthal
 robin            Robinson
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to