BaşlayınÜcretsiz başlayın

Creating Basemap map

Basemap allows you to create maps in Python. The library builds projections for latitude and longitude coordinates and then passes the plotting work on to matplotlib. This means you can build extra features based on the power of matplotlib.

In this exercise, we're going to set up a map of the continental United States on a Mercator projection. The corner coordinates of this map are provided for you below.

Bu egzersiz, kursun bir parçasıdır

Analyzing Social Media Data in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Import Basemap
from ____ import ____
import matplotlib.pyplot as plt

# Set up the US bounding box
us_boundingbox = [-125, 22, -64, 50] 

# Set up the Basemap object
m = ____(llcrnrlon = ____[____],
            llcrnrlat = ____[____],
            urcrnrlon = ____[____],
            urcrnrlat = ____[____],
            projection='merc')
Kodu Düzenle ve Çalıştır