Skip to content

Instantly share code, notes, and snippets.

@junzis
Created August 13, 2020 12:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junzis/07f737b609e3fb831e9d0ba4f9f7757b to your computer and use it in GitHub Desktop.
Save junzis/07f737b609e3fb831e9d0ba4f9f7757b to your computer and use it in GitHub Desktop.
Catorpy examples
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