salem.Map.set_shapefile

Map.set_shapefile(shape=None, countries=False, oceans=False, rivers=False, **kwargs)

Add a shapefile to the plot.

Salem is shipped with a few default settings for country borders, oceans and rivers (set one at the time!)

set_shapefile() without argument will reset the map to zero shapefiles.

Parameters:

shape: the path to the shapefile to read

countries: if True, add country borders

oceans: if True, add oceans

rivers: if True, add rivers

kwargs: all keywords accepted by the corresponding collection.

For LineStrings::

linewidths, colors, linestyles, ...

For Polygons::

alpha, edgecolor, facecolor, fill, linestyle, linewidth, color, ...