import matplotlib.pyplot as mpl
import cartopy.crs as ccrs

fig = plt.figure()
ax = fig.add_subplot(projection=ccrs.PlateCarree())
ax.coastlines()