matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
775 stars 392 forks source link

Issue when call basemap #490

Closed jeff22222 closed 4 years ago

jeff22222 commented 4 years ago

I installed Basemap by pip install --user git+https://github.com/matplotlib/basemap.git but when I called library from mpl_toolkits.basemap import Basemap It showed erro

----> 2 from mpl_toolkits.basemap import Basemap
      3 import matplotlib.pyplot as plt
      4 
      5 plt.rcParams["font.size"] = 20

ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
WeatherGod commented 4 years ago

Most likely, either the install failed in a subtle way, or the package got installed into a different environment than what you are running.

Please remember that Basemap isn't really supported anymore and has been deprecated for several years. Please try and use Cartopy where possible.