Skip to content
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

transform=ccrs.PlateCarree() now required when making maps #58

Closed
bradyrx opened this issue Oct 25, 2019 · 2 comments
Closed

transform=ccrs.PlateCarree() now required when making maps #58

bradyrx opened this issue Oct 25, 2019 · 2 comments
Labels

Comments

@bradyrx
Copy link
Collaborator

bradyrx commented Oct 25, 2019

I think after 77f2b71, this issue arose.

Previously, one could do something like:

import numpy as np
import proplot as plot
% import cartopy.crs as ccrs

data = np.random.rand(180, 360)
lats = np.linspace(-89.5, 89.5, 180)
lons = np.linspace(-179.5, 179.5, 360)

f, ax = plot.subplots(proj='robin')

ax.pcolormesh(lons, lats, data)

and you'd get the map. Now it's showing up blank and requires ax.pcolormesh(lons, lats, data, transform=ccrs.PlateCarree()). Maybe minor but a nice thing to not have to worry about with proplot.

@lukelbd
Copy link
Collaborator

lukelbd commented Oct 25, 2019

...sorry, that was a dumb bug. Fixed by 05c3898.

@lukelbd lukelbd closed this as completed Oct 25, 2019
@bradyrx
Copy link
Collaborator Author

bradyrx commented Oct 26, 2019

FYI @lukelbd , globe=True doesn't work anymore for me with contourf after this (or maybe before this? I'm not sure). But it fixes the seam on pcolormesh but not contourf right now. I had to manually run the cartopy add_cyclic_point.

I'm not sure how to reproduce this with simple data. It's always a mystery to me which data makes a seam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants