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.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to