[docs]
def colormap(name):
"""Return named Landlab colormap as a matplotlib colormap.
Parameters
----------
name : str
Name of colormap
Currently available maps are:
'water': black to light blue
'earth': dark olive to light sand color
"""
colormap_fns = {"water": water_colormap(), "earth": earth_colormap()}
try:
return colormap_fns[name]
except KeyError:
print('Warning: colormap "' + name + '" does not exist')
return None