December 2017
Intermediate to advanced
386 pages
10h 42m
English
In the first line of code, we import the cartopy.crs module with the ccrs alias. We then create a Figure object and an Axes object with the following call:
ax = fig.add_subplot(1, 1, 1, projection=ccrs.Mollweide())
Notice that we need to specify the projection option in the add_subplot() method call. Cartopy makes available several different projections for drawing global maps.
Next, we add to the figure the continent coastlines and a stock image of the globe with the following commands:
ax.coastlines()ax.stock_img()
The next step is to add data to the map. In a more realistic example, we would be using a dataset that includes some ...
Read now
Unlock full access