Basemap is among the most popular Matplotlib-based plotting toolkits to plot over world maps. It is a handy way to show any geographical location.
To install Basemap, do this:
- Unpack in $Python3_dir/site-packages/mpl_toolkits
- Enter the Basemap installation directory: cd $basemap_dir
- Enter the geos directory in the Basemap directory: cd $basemap/geos-3.3.3
- Install the GEOS library via ./configure, make, and make install
- Install PyProj (refer to the following tip)
- Return to the Basemap installation directory and run python3 setup.py install
- Set the environment variable PROJ_DIR=$pyproj_dir/lib/pyproj/data
Basemap requires PyProj as a dependency, where there are recurrent reports of installation failures. We recommend installing from ...