Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48ff965

Browse files
committed
issue a warning when _image_skew_coordinate is set for backends that do not support an affine transform of images
svn path=/trunk/matplotlib/; revision=8119
1 parent cf1a112 commit 48ff965

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/matplotlib/image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ def draw(self, renderer, *args, **kwargs):
305305
if self._check_unsampled_image(renderer):
306306
self._draw_unsampled_image(renderer, gc)
307307
else:
308+
if self._image_skew_coordinate is not None:
309+
warnings.warn("Image will not be shown correctly with this backend.")
310+
308311
im = self.make_image(renderer.get_image_magnification())
309312
if im is None:
310313
return

0 commit comments

Comments
 (0)