Skip to content

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

Closed

Description

@bradyrx

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.

Activity

  1. lukelbd commented on Oct 25, 2019

    @lukelbd
    Collaborator

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

  2. bradyrx commented on Oct 26, 2019

    @bradyrx
    CollaboratorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions