I made a geographical memory card using cartographic and matplotlib, the number of users of my application, but I had problems adding a color bar legend:
import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np cmap = mpl.cm.Blues
which produces
I want to add a color bar legend. There is documentation to do this for a simple matplotlib plot, but I'm not sure how to do this using cartography, where the axis is GeoAxesSubplot
. Any help adding a legend would be appreciated.
I also appreciate tips on which library is best suited for these types of maps. Next time I have to make a heat map of users in the USA, and cartography does not seem to be the best option. Thanks!
source share