In this recipe, we will learn how to plot time zones on the map. A time zones shapefile is available at the Natural Earth data website, so we could use shapereader to download it, as we have been doing. However, we have downloaded the file offline and are using it here to demonstrate another feature provided by cartopy: ShapelyFeature.
Plotting time zones
Getting ready
You'll need to import the required libraries using the following commands:
import matplotlib.pyplot as plt
import numpy as np
import cartopy.crs as ccrs
from cartopy.io.shapereader import Reader
from cartopy.feature import ShapelyFeature
import matplotlib.ticker as mticker