|
From: <lee...@us...> - 2010-02-08 16:54:37
|
Revision: 8119
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8119&view=rev
Author: leejjoon
Date: 2010-02-08 16:54:31 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
issue a warning when _image_skew_coordinate is set for backends that do not support an affine transform of images
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/image.py
Modified: trunk/matplotlib/lib/matplotlib/image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/image.py 2010-02-08 16:54:26 UTC (rev 8118)
+++ trunk/matplotlib/lib/matplotlib/image.py 2010-02-08 16:54:31 UTC (rev 8119)
@@ -305,6 +305,9 @@
if self._check_unsampled_image(renderer):
self._draw_unsampled_image(renderer, gc)
else:
+ if self._image_skew_coordinate is not None:
+ warnings.warn("Image will not be shown correctly with this backend.")
+
im = self.make_image(renderer.get_image_magnification())
if im is None:
return
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|