Skip to content

Instantly share code, notes, and snippets.

View markusritschel's full-sized avatar

Markus Ritschel markusritschel

  • Post-doc at the University of Hamburg
  • Hamburg
View GitHub Profile
@markusritschel
markusritschel / map_plots.py
Last active November 15, 2023 23:58
Accessor for cartopy.GeoAxes objects to simplify adding features to (stereographic) map plots
from abc import ABC, abstractmethod
from matplotlib import pyplot as plt, path as mpath
import functools
import cartopy
import cartopy.crs
import cartopy.mpl.geoaxes
import numpy as np
def register_geoaxes_accessor(accessor_name):