From: <as...@us...> - 2009-10-11 18:55:24
|
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. |