salem.Map.set_shapefile
- Map.set_shapefile(shape=None, countries=False, oceans=False, rivers=False, lakes=False, **kwargs)[source]
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
- lakes: if True, add lakes
- kwargs: all keywords accepted by the corresponding collection.
- For LineStrings::
linewidths, colors, linestyles, …
- For Polygons::
alpha, edgecolor, facecolor, fill, linestyle, linewidth, color, …