-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatiable with polar projectoin with cartopy 0.20 #307
Comments
And here's what this looks like in matplotlib + cartopy alone (version 0.20): import matplotlib.pyplot as plt
import cartopy.crs as ccrs
fig, ax = plt.subplots(subplot_kw={'projection': ccrs.NorthPolarStereo()})
ax.set_extent([-180, 180, 0, 90], ccrs.PlateCarree())
ax.coastlines()
ax.gridlines(
draw_labels=True,
x_inline=True,
y_inline=True,
ylim=(0, 80),
) |
Fixed this, along with what seems to be a cartopy 0.20 issue with setting longitude/latitude label sides using import proplot as pplt
fig, ax = pplt.subplot(
proj='npstere', round=False, boundinglat=30, lonlabels='lrbt', latinline=True, coast=True
) |
Thanks a lot, Luke! Did you also get some warnings when running your code above? (matplotlib: 3.5.1; proplot: master; cartopy: 0.20.1) CLICK TO SEE WARNING
|
It looks like this is a cartopy issue with the latest |
Got it. Updating cartopy to 0.20.2 fixes this ;) |
Description
As discussed in #246, the latinline doesn't work with the new version of cartopy. Although the new cartopy also has some problem of showing lonlabels ...
Steps to reproduce
Expected behavior: [What you expected to happen]
The lat labels are shown inline.
Actual behavior: [What actually happened]
Equivalent steps in matplotlib
Proplot version
Paste the results of
import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)
here.The text was updated successfully, but these errors were encountered: