Answers for "ModuleNotFoundError: No module named 'mpl_toolkits.basemap'"

0

No module named 'mpl_toolkits.basemap'

source activate MyProfileName
conda install basemap

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# setup Lambert Conformal basemap.
# set resolution=None to skip processing of boundary datasets.
m = Basemap(width=12000000,height=9000000,projection='lcc',
            resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
m.bluemarble()
plt.show()
Posted by: Guest on August-31-2020

Code answers related to "ModuleNotFoundError: No module named 'mpl_toolkits.basemap'"

Python Answers by Framework

Browse Popular Code Answers by Language