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

Add geom_map geometry for plotting geographic maps #14

Open
adamboche opened this issue Jun 15, 2017 · 5 comments
Open

Add geom_map geometry for plotting geographic maps #14

adamboche opened this issue Jun 15, 2017 · 5 comments
Labels

Comments

@adamboche
Copy link

adamboche commented Jun 15, 2017

ggplot2 has geom_map for plotting geography. I can imagine a nice interface with geopandas, which has gpd.GeoDataFrame.plot() through matplotlib. Here's a demo from the docs:

  ggplot(crimesm, aes(map_id = state)) +
    geom_map(aes(fill = value), map = states_map) +
    expand_limits(x = states_map$long, y = states_map$lat) +
    facet_wrap( ~ variable)

geom_map-8

@has2k1
Copy link
Owner

has2k1 commented Jun 15, 2017

I am working on a mapping geom (geom_carto), with geopandas and cartopy. Using cartopy as the backend though feature rich (real cartographic projections), is not straight-forward and there are changes I would want in cartopy.

I hoped to have it for the next minor release, though if I cannot tame cartopy in time, I may in the meanwhile create an alternative projection-less mapping geom just like geom_map.

@has2k1 has2k1 added the Feature label Jun 28, 2017
@liuzongquan
Copy link

plotnine is so great! thanks to @has2k1 ~

@jmccreight
Copy link

+1

@cwerner
Copy link

cwerner commented Jun 1, 2018

Hi. New user here. Very excited about this project.

Is there any update on the geom_carto feature @has2k1 ? Also, is there any interest in also supporting gridded geodata (I'm thinking xarray: https://github.com/pydata/xarray)? I think this would be an awesome match!

@has2k1
Copy link
Owner

has2k1 commented Jun 4, 2018

@cwerner

geom_carto depends on cartopy acquiring a standard way to add artists, e.g. GeomCollection as suggested.

I have not looked into xarray, so my imagination on how to use it as a datasource it is blank.

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

5 participants