Note

This tutorial was generated from an IPython notebook that can be downloaded here.

# Plotting¶

Every region has a plotting function, that draws the outline of all (or selected) regions on a cartopy map. We use the predefined SREX regions as example.

Import regionmask and check the version:

import regionmask

'0.4.0'


## Plot all regions¶

Do the default plot.

regionmask.defined_regions.srex.plot();


## Plot only a Subset of Regions¶

# load cartopy
import cartopy.crs as ccrs

# regions can be selected by number, abbreviation or long name
regions=[11, 'CEU', 'S. Europe/Mediterranean']

# choose a good projection for regional maps
proj=ccrs.LambertConformal(central_longitude=15)

# do the plot