Skip to content

Support polar axes labels with cartopy #246

@zxdawn

Description

@zxdawn

Description

Now, cartopy has supported the axes labels for polar projection.

But, proplot doesn't work with the same newest version of cartopy.

Steps to reproduce

import proplot as plot
fig, axs = plot.subplots(proj='npstere')
axs.format(coast=True, latlines=10, lonlines=30, lonlabels=True, labels=True, boundinglat=60)

Expected behavior (matplotlib with cartopy)

image

Actual behavior: (proplot with cartopy)
image

Equivalent steps in matplotlib

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

ax = plt.subplot(projection=ccrs.NorthPolarStereo())
ax.set_extent([-180,180,90,60], ccrs.PlateCarree())
ax.coastlines()
ax.gridlines(draw_labels=True)

Proplot version

0.6.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions