Here is the explanation for the preceding code:
- ax = fig.add_subplot(1, 1, 1, projection=ccrs.Robinson()) defines the axes with the Robinson projection.
- ax.plot(-0.08, 51.53, 'o', transform=ccrs.PlateCarree(), markersize=7, color='r') plots the location as London, as follows:
- (-0.08, 51.53) are the longitude and latitude coordinates for London.
- 'o' is the marker for the location to be plotted on the map.
- transform=ccrs.PlateCarree() specifies the coordinate system in which longitude and latitude parameters are provided. These coordinates will be transformed internally to Robinson coordinates, since we are plotting the map with a Robinson projection.
- markersize=7 specifies the size of the point being plotted on the map, which ...