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

Log Message:
-----------
allow already transformed clip path in artist set_clip_path()

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

Modified: branches/v0_99_maint/lib/matplotlib/artist.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/artist.py       2009-10-11 02:55:42 UTC 
(rev 7865)
+++ branches/v0_99_maint/lib/matplotlib/artist.py       2009-10-11 18:54:22 UTC 
(rev 7866)
@@ -484,6 +484,9 @@
         elif isinstance(path, Path):
             self._clippath = TransformedPath(path, transform)
             success = True
+        elif isinstance(path, TransformedPath):
+            self._clippath = path
+            success = True
 
         if not success:
             print type(path), type(transform)


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