Created
August 13, 2020 12:58
-
-
Save junzis/07f737b609e3fb831e9d0ba4f9f7757b to your computer and use it in GitHub Desktop.
Catorpy examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cartopy.feature import NaturalEarthFeature | |
import cartopy.crs as ccrs | |
plt.figure(figsize=(6, 6)) | |
ax = plt.axes(projection=ccrs.EuroPP(), zorder=1) | |
land = NaturalEarthFeature( | |
category="cultural", | |
name="admin_0_countries", | |
scale="10m", | |
facecolor="none", | |
edgecolor="lightgray", | |
) | |
ax.add_feature(land, zorder=-1) | |
ax.set_extent((0, 10, 48, 55)) | |
ax.scatter(sample_trajectory.lon, sample_trajectory.lat, transform=ccrs.Geodetic(), s=5) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment