A succinct matplotlib wrapper for making beautiful, publication-quality graphics.
—
Extended collection of cartographic projections beyond matplotlib and cartopy defaults, with specialized polar projections and support for custom coordinate reference systems. Proplot provides additional projections and enhanced geographic plotting capabilities.
class Aitoff:
"""Aitoff projection for world maps."""
class Hammer:
"""Hammer projection for world maps."""
class KavrayskiyVII:
"""Kavrayskiy VII projection."""
class WinkelTripel:
"""Winkel tripel (Winkel III) projection."""
class NorthPolarAzimuthalEquidistant:
"""North polar azimuthal equidistant projection."""
class SouthPolarAzimuthalEquidistant:
"""South polar azimuthal equidistant projection."""
class NorthPolarGnomonic:
"""North polar gnomonic projection."""
class SouthPolarGnomonic:
"""South polar gnomonic projection."""
class NorthPolarLambertAzimuthalEqualArea:
"""North polar Lambert azimuthal equal area projection."""
class SouthPolarLambertAzimuthalEqualArea:
"""South polar Lambert azimuthal equal area projection."""def Proj(*args, **kwargs):
"""
Construct projection instances from specifications.
Parameters:
- proj (str): Projection name or specification
- **kwargs: Projection-specific parameters
Supported Projections:
- All cartopy projections (platecarree, mercator, lambert, etc.)
- Custom proplot projections (aitoff, hammer, winkel3, etc.)
- Polar projections (npaeqd, spaeqd, nplaea, etc.)
Returns:
Projection: Cartopy projection instance
"""import proplot as pplt
# Custom projections
fig, axes = pplt.subplots(ncols=3, proj=['aitoff', 'hammer', 'winkel3'])
for ax in axes:
ax.format(land=True, coast=True)
# Polar projections
fig, ax = pplt.subplots(proj='npaeqd')
ax.format(boundinglat=60, land=True, coast=True)Install with Tessl CLI
npx tessl i tessl/pypi-proplot