Revision: 7867
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7867&view=rev
Author:   astraw
Date:     2009-10-11 18:55:18 +0000 (Sun, 11 Oct 2009)

Log Message:
-----------
imshow: only apply axes patch clipping if image doesn't clip itself

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/axes.py

Modified: branches/v0_99_maint/lib/matplotlib/axes.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/axes.py 2009-10-11 18:54:22 UTC (rev 
7866)
+++ branches/v0_99_maint/lib/matplotlib/axes.py 2009-10-11 18:55:18 UTC (rev 
7867)
@@ -6275,7 +6275,9 @@
         im.set_data(X)
         im.set_alpha(alpha)
         self._set_artist_props(im)
-        im.set_clip_path(self.patch)
+        if not im.get_clip_on():
+            # image does not already have clipping set, clip to axes patch
+            im.set_clip_path(self.patch)
         #if norm is None and shape is None:
         #    im.set_clim(vmin, vmax)
         if vmin is not None or vmax is not None:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to