I'm running into problems with a simple Python program for plotting maps with the matplotlib and Basemap. I use example code from the Basemap website:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
m = Basemap(width=12000000,height=9000000,projection='lcc',
resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
m.shadedrelief()
plt.show()
The program crashed and I got the following message:
Segmentation fault (core dumped)
Very interesting is that changing the next-to-last line to:
m.etopo()
causes the program to plot a map. I don't know where to find the error. Is it matplotlib? Is it basemap? Is it Python? My system? Can anybody help?
My versions:
Python 2.7.3
matplotlib: 1.3.1
basemap version: 1.0.7
numpy version: 1.6.1
Linux: Ubuntu 12.04 / 64 bit
Thanx a lot!