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

Basemap background image has latitudes reversed #2791

Closed
wardev opened this issue Feb 5, 2014 · 3 comments
Closed

Basemap background image has latitudes reversed #2791

wardev opened this issue Feb 5, 2014 · 3 comments

Comments

@wardev
Copy link

wardev commented Feb 5, 2014

I'm using basemap to show a map of North America, but the background image functions (etopo(), bluemarble(), shadedrelief()) all show South America upside-down. The drawcoastlines() correctly shows North America.

To reproduce:

m = Basemap(llcrnrlon=-124.7, llcrnrlat=-0.6,
                    urcrnrlon=-64.5, urcrnrlat=59.3,
                    rsphere=(6378137.00,6356752.3142),projection='merc')
m.etopo()
m.drawcoastlines()

With the above code I get
figure_1

@guziy
Copy link

guziy commented Feb 5, 2014

Your code works fine for me (example), please, try updating basemap and matplotlib.

My basemap and mpl versions are respectively: 1.0.7; 1.3.1

@guziy
Copy link

guziy commented Feb 6, 2014

Just wanted to point out that there is a separate repository for basemap project, so it is more appropriate to post basemap related issues there.

@pelson
Copy link
Member

pelson commented Feb 10, 2014

From memory (I can't find the original ticket) this was a problem with an old basemap version when changing from matplotlib v1.1 to v1.2 (when we changed the default image origin). Updating you Basemap version should fix this.

As @guziy said - there is a basemap repo which would be better suited for the question. If the problem isn't resolved by updating your version, I'd suggest opening an issue there.

Cheers!

@pelson pelson closed this as completed Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants