Skip to content

Commit 26cb6e0

Browse files
author
Jeff Whitaker
committed
raise error message when warpimage is used with celestial=True (issue
101)
1 parent b1b47e4 commit 26cb6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3982,6 +3982,9 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
39823982
except ImportError:
39833983
raise ImportError('warpimage method requires PIL (http://www.pythonware.com/products/pil)')
39843984
from matplotlib.image import pil_to_array
3985+
if self.celestial:
3986+
msg='warpimage does not work in celestial coordinates'
3987+
raise ValueError(msg)
39853988
ax = kwargs.pop('ax', None) or self._check_ax()
39863989
# default image file is blue marble next generation
39873990
# from NASA (http://visibleearth.nasa.gov).

0 commit comments

Comments
 (0)