November 2018
Beginner to intermediate
214 pages
5h 2m
English
We will begin by drawing coastlines using the following code:
# Just coastlinesm = Basemap(projection='ortho',lon_0=-114, lat_0=51)m.drawcoastlines()plt.show()
In the previous sections, we have seen that basemap can generate a sort of background image of coastlines of the globe, but we haven't seen how this is done. It is done simply by using the coastlines method in the preceding snippet. Using this gives us the coastlines, as shown in the following output:

In our preceding output, we see that the coastlines are fairly coarse. We can change how coarse the coastlines are by using the resolution keyword ...
Read now
Unlock full access