-
Notifications
You must be signed in to change notification settings - Fork 392
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
ETOPO failed to show with pseudocyl projection #577
Comments
Hi @YilongWang! Thanks for reporting this issue. I am currently a bit busy, but I will come back to this issue as soon as I can find a spot in my calendar. |
Sorry for being so delayed with this, @YilongWang! I have just pushed the commit with your correction related to the images being shown behind the map background. I keep this issue open while I correct your other proposal, since it gives the hints for #463. Once I correct this, both issues will be closed. Thank you for your contributions! |
Solves GitHub issue #577. The issue started appearing with `matplotlib` 3.5.0, older versions of `matplotlib` were behaving as desired.
I am closing here, since the image showing issue should be fixed now. Thanks again, @YilongWang! |
I have the basemap-1.3.7 and matplotlib-3.7.1.
When the projection is "moll" or "robin", etopo will show nothing.
It can be fixed to add "fill_color='none'" on Line 3206 of __init__.py
In addition, with these projections, the left and right sides of the map have the same longitude, so the x and y in meters will be confused when lon_0 is larger than 0.
I tried to fix this problem with the following steps, though very roughly:
(1) In __init__.py, on Line 4184, subtract 1e-10 from lonright; on L4185 add 1e-10 to lonleft:
lonright = lon_0+180.-1e-10
lonleft = lon_0-180.+1e-10
(2) In proj.py, on Line 199 and Line 240, subtract -1e-10 from urcrnrx:
urcrnrx,xtmp = self(projparams['lon_0']+180.-1e-10,0)
The text was updated successfully, but these errors were encountered: