Fwd: Issue with Basemap and drawcounties()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fwd: Issue with Basemap and drawcounties()

Joshua Devlin

Code which I'm trying to plot inside a Jupyter notebook:

%matplotlib inline
from mpl_toolkits.basemap import Basemap
m = Basemap(projection="merc", llcrnrlat=38.8, llcrnrlon=-76, urcrnrlat=42, urcrnrlon=-72.5, resolution='i')
m.drawcoastlines(linewidth=.25)
m.drawcountries(linewidth=.25)
m.drawstates(linewidth=.2)
m.drawcounties(linewidth=.1)

The error I get is:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 2: invalid continuation byte

Which is exactly the same as in this GitHub Issue (which isn’t mine): https://github.com/matplotlib/basemap/issues/324

I’m running MPL 1.5.3, does anyone have any clues on how I might troubleshoot this?


Joshua Devlin
M: <a href="tel:(832)%20266-2564" value="+18322662564" target="_blank">+1 832 266 2564
E: [hidden email]


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Loading...