Skip to content

Instantly share code, notes, and snippets.

@maxim75
Created February 15, 2022 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxim75/5bceb832727b380a5ef3d74fff6882b0 to your computer and use it in GitHub Desktop.
Save maxim75/5bceb832727b380a5ef3d74fff6882b0 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import contextily as ctx
fig = plt.figure(figsize=(20,20))
ax = plt.axes()
gdf[gdf.gps_qual > 0].plot(ax=ax, alpha=.2, edgecolor="#ffff", color='red')
ctx.add_basemap(ax, source=ctx.providers.Stamen.TonerLite, crs="EPSG:4326", alpha=.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment