Here is the explanation for the preceding code:
- ax1 = fig.add_subplot(331, projection=ccrs.PlateCarree()) defines the first axes on a 3 x 3 grid of 9 axes (plots), and uses a PlateCarree projection for the axes, as shown in the following screenshot
- ax1.stock_img() plots the default image as the background for the map.
- The previous two steps are repeated for all nine projections
- Since this is the demonstration of sample projections available, we are not adding any predefined features or any other user defined maps
Upon executing the preceding code, you should see the following plots on your screen: