Skip to content

drawlsmask() results are upside down using backend: cairo #329

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

Closed
adrianreber opened this issue Dec 11, 2016 · 1 comment
Closed

drawlsmask() results are upside down using backend: cairo #329

adrianreber opened this issue Dec 11, 2016 · 1 comment

Comments

@adrianreber
Copy link

from mpl_toolkits.basemap import Basemap
import numpy as np
import numpy as np
import matplotlib.pyplot as plt
m = Basemap(llcrnrlon=-180., llcrnrlat=-90, urcrnrlon=180.,
        urcrnrlat=90.,resolution='c', projection='cyl')
m.drawcoastlines()
m.drawlsmask(ocean_color=(0,0,255,255), land_color=(0,128,0,255), lakes=True)
plt.savefig('test.png')

This example with ~/.config/matplotlib/matplotlibrc: backend: cairo gives a map where the result of draslsmask() is upside down:

test

Removing the file ~/.config/matplotlib/matplotlibrc gives a correct result. This is on Fedora 25 with python-basemap-1.0.7-14.fc25.x86_64

Not a real problem for me anymore but just trying to document it if other people are seeing these upside down maps.

@QuLogic
Copy link
Member

QuLogic commented Dec 11, 2016

This is a bug with matplotlib matplotlib/matplotlib#7156 that will be fixed in 2.0.0.

@QuLogic QuLogic closed this as completed Dec 11, 2016
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

2 participants