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

flip arrays returned by pil_to_array for matplotlib > 1.2 #52

Merged
merged 3 commits into from
Jun 25, 2012
Merged

flip arrays returned by pil_to_array for matplotlib > 1.2 #52

merged 3 commits into from
Jun 25, 2012

Conversation

jswhit
Copy link
Contributor

@jswhit jswhit commented Jun 25, 2012

No description provided.

@mdboom
Copy link
Member

mdboom commented Jun 25, 2012

Thanks -- I probably should have communicated this change wrt to the basemap issues better. This looks like the correct fix to me.

@@ -3692,7 +3692,12 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
width = int(np.round(w*scale))
height = int(np.round(h*scale))
pilImage = pilImage.resize((width,height),Image.ANTIALIAS)
self._bm_rgba = pil_to_array(pilImage)
if _matplotlib_version > '1.2':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should be >= 1.2, so it doesn't fail when the dev stuff is dropped when making a release?

jswhit added a commit that referenced this pull request Jun 25, 2012
flip arrays returned by pil_to_array for matplotlib > 1.2
@jswhit jswhit merged commit db9b6a4 into matplotlib:master Jun 25, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants